From 855a0e8ddc273b58066530a1b55a946021dfc56e Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Wed, 24 Jun 2015 18:47:42 -0400 Subject: Cleaned up code, commented, preparing for HTTPS via CordovaHTTP --- plugins/org.apache.cordova.file/src/blackberry10/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/org.apache.cordova.file/src/blackberry10/index.js (limited to 'plugins/org.apache.cordova.file/src/blackberry10/index.js') diff --git a/plugins/org.apache.cordova.file/src/blackberry10/index.js b/plugins/org.apache.cordova.file/src/blackberry10/index.js new file mode 100644 index 00000000..914d9663 --- /dev/null +++ b/plugins/org.apache.cordova.file/src/blackberry10/index.js @@ -0,0 +1,10 @@ +module.exports = { + setSandbox : function (success, fail, args, env) { + require("lib/webview").setSandbox(JSON.parse(decodeURIComponent(args[0]))); + new PluginResult(args, env).noResult(false); + }, + + isSandboxed : function (success, fail, args, env) { + new PluginResult(args, env).ok(require("lib/webview").getSandbox() === "1"); + } +}; -- cgit v1.2.3