forked from Botanical/BotanJS
Initial commit
This commit is contained in:
13
botanjs/src/System/Policy/_this.js
Normal file
13
botanjs/src/System/Policy/_this.js
Normal file
@@ -0,0 +1,13 @@
|
||||
(function(){
|
||||
var ns = __namespace( "System.Policy" );
|
||||
|
||||
/** @type {System.Global} */
|
||||
var Global = __import( "System.Global" );
|
||||
|
||||
var isOriginAllowed = function( origin )
|
||||
{
|
||||
return -1 < Global.ALLOWED_ORIGINS.indexOf( origin );
|
||||
};
|
||||
|
||||
ns[ NS_EXPORT ]( EX_FUNC, "isOriginAllowed", isOriginAllowed );
|
||||
})();
|
||||
Reference in New Issue
Block a user