aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-24 00:25:14 -0700
committerJose Antonio Marquez2012-05-24 00:25:14 -0700
commit36c7e9a31e5197fee6824ffe746d715b24bcadcb (patch)
tree7088a208a6f36eb334b3cabe5280629870fbab9f /js/controllers
parentfef450f6dd19243f7d6cffb80ba706a67d39e284 (diff)
downloadninja-36c7e9a31e5197fee6824ffe746d715b24bcadcb.tar.gz
Renaming variable as it will now be used
This is no longer a temp fix, it might be a permanent boolean to open/close web-request API gates.
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index f84e4da5..c61441b7 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -22,7 +22,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
22 value: [] 22 value: []
23 }, 23 },
24 24
25 _hackRootFlag: { 25 redirectRequests: {
26 value: false 26 value: false
27 }, 27 },
28 28
@@ -74,7 +74,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
74 handleWebRequest: { 74 handleWebRequest: {
75 value: function (request) { 75 value: function (request) {
76 //TODO: Check if frameId is proper 76 //TODO: Check if frameId is proper
77 if (this._hackRootFlag && request.parentFrameId !== -1) { 77 if (this.redirectRequests && request.parentFrameId !== -1) {
78 //Checking for proper URL redirect (from different directories) 78 //Checking for proper URL redirect (from different directories)
79 if (request.url.indexOf('js/document/templates/banner') !== -1) { 79 if (request.url.indexOf('js/document/templates/banner') !== -1) {
80 return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split(chrome.extension.getURL('js/document/templates/banner/'))[1]}; 80 return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split(chrome.extension.getURL('js/document/templates/banner/'))[1]};
@@ -330,7 +330,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
330 } 330 }
331 331
332 //Open in designer view 332 //Open in designer view
333 this._hackRootFlag = false; 333 this.redirectRequests = false;
334 Montage.create(HTMLDocument).init(file, this, this._onOpenDocument, 'design', template); 334 Montage.create(HTMLDocument).init(file, this, this._onOpenDocument, 'design', template);
335 break; 335 break;
336 default: 336 default: