aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/controllers/document-controller.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index c6f867aa..d5556fa8 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -78,8 +78,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
78 78
79 79
80 80
81 81
82 /*
83//////////////////////////////////////////////////////////////////// 82////////////////////////////////////////////////////////////////////
84 // 83 //
85 handleWebRequest: { 84 handleWebRequest: {
@@ -87,7 +86,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
87 //TODO: Check if frameId is proper 86 //TODO: Check if frameId is proper
88 if (this._hackRootFlag && request.parentFrameId !== -1) { 87 if (this._hackRootFlag && request.parentFrameId !== -1) {
89 //TODO: Optimize creating string 88 //TODO: Optimize creating string
90 console.log(request); 89 //console.log(request);
91 //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url); 90 //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url);
92 //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]}; 91 //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]};
93 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]}; 92 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]};
@@ -110,7 +109,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
110 } 109 }
111 }, 110 },
112 //////////////////////////////////////////////////////////////////// 111 ////////////////////////////////////////////////////////////////////
113*/ 112
114 113
115 114
116 115