diff options
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index 3db4c7d4..539fd13e 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -72,8 +72,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
72 | 72 | ||
73 | 73 | ||
74 | 74 | ||
75 | 75 | ||
76 | /* | ||
77 | //////////////////////////////////////////////////////////////////// | 76 | //////////////////////////////////////////////////////////////////// |
78 | // | 77 | // |
79 | handleWebRequest: { | 78 | handleWebRequest: { |
@@ -81,7 +80,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
81 | //TODO: Check if frameId is proper | 80 | //TODO: Check if frameId is proper |
82 | if (this._hackRootFlag && request.parentFrameId !== -1) { | 81 | if (this._hackRootFlag && request.parentFrameId !== -1) { |
83 | //TODO: Optimize creating string | 82 | //TODO: Optimize creating string |
84 | console.log(request); | 83 | //console.log(request); |
85 | //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url); | 84 | //console.log(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1], request.url); |
86 | //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]}; | 85 | //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]}; |
87 | 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]}; | 86 | 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]}; |
@@ -104,7 +103,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
104 | } | 103 | } |
105 | }, | 104 | }, |
106 | //////////////////////////////////////////////////////////////////// | 105 | //////////////////////////////////////////////////////////////////// |
107 | */ | 106 | |
108 | 107 | ||
109 | 108 | ||
110 | 109 | ||