aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-10 15:36:24 -0700
committerJose Antonio Marquez2012-05-10 15:36:24 -0700
commitd75aff9e251f84a13c326668a5271b5852dcde53 (patch)
tree43341d64ecf48d5bf393e69d1a87fedd86a62158 /js/controllers
parentfb7a3aa9ce0d9b99dca79cfb89951b5c51523250 (diff)
downloadninja-d75aff9e251f84a13c326668a5271b5852dcde53.tar.gz
Adding webRequest API
Adding webRequest API to handle local URLs intercepting. Should be a temp fix.
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 58fa4de7..84e9f4fc 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -89,8 +89,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
89 89
90 90
91 //TODO: Ensure these APIs are not needed 91 //TODO: Ensure these APIs are not needed
92 /* 92 ////////////////////////////////////////////////////////////////////
93////////////////////////////////////////////////////////////////////
94 // 93 //
95 handleWebRequest: { 94 handleWebRequest: {
96 value: function (request) { 95 value: function (request) {
@@ -100,7 +99,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
100 //console.log(request); 99 //console.log(request);
101 //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url); 100 //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url);
102 //return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split('/')[request.url.split('/').length-1]}; 101 //return {redirectUrl: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]+request.url.split('/')[request.url.split('/').length-1]};
103 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/montage-html/'))[1]}; 102 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/montage-web/'))[1]};
104 } 103 }
105 } 104 }
106 }, 105 },
@@ -120,7 +119,6 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
120 } 119 }
121 }, 120 },
122 //////////////////////////////////////////////////////////////////// 121 ////////////////////////////////////////////////////////////////////
123*/
124 122
125 123
126 124