summaryrefslogtreecommitdiff
path: root/plugins/org.apache.cordova.file/src/blackberry10/index.js
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-06-24 18:47:42 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-06-24 18:47:42 -0400
commit855a0e8ddc273b58066530a1b55a946021dfc56e (patch)
tree26550033e855a31a265fc2da4da3df0cc2733dc1 /plugins/org.apache.cordova.file/src/blackberry10/index.js
parentd442629aa825aab6bc55ab6be19e3aba060867fe (diff)
Cleaned up code, commented, preparing for HTTPS via CordovaHTTP
Diffstat (limited to 'plugins/org.apache.cordova.file/src/blackberry10/index.js')
-rw-r--r--plugins/org.apache.cordova.file/src/blackberry10/index.js10
1 files changed, 10 insertions, 0 deletions
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");
+ }
+};