diff options
author | Jon Reid | 2012-02-23 17:10:08 -0800 |
---|---|---|
committer | Jon Reid | 2012-02-23 17:10:08 -0800 |
commit | 5570a42a3220a14a614b6dd52fe530e8f436c8b0 (patch) | |
tree | e368f458b89dc20b25a6f09157a3c9ab62307257 /js/controllers/document-controller.js | |
parent | 0b18fb2fef124a26204d5dba90cd82c975b69df3 (diff) | |
parent | db2fd02a1b0e909bb536fa63cefd2144f4642ead (diff) | |
download | ninja-5570a42a3220a14a614b6dd52fe530e8f436c8b0.tar.gz |
Merge remote-tracking branch 'ninja-internal/master' into Timeline-local
Conflicts:
js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
Diffstat (limited to 'js/controllers/document-controller.js')
-rwxr-xr-x | js/controllers/document-controller.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index fa611de4..1c9d9d59 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -84,8 +84,13 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
84 | // | 84 | // |
85 | handleAppLoaded: { | 85 | handleAppLoaded: { |
86 | value: function() { | 86 | value: function() { |
87 | //Adding an intercept to resources loaded to ensure user assets load from cloud simulator | 87 | //Checking for app to be loaded through extension |
88 | if (window.chrome.app.isInstalled) { | 88 | var check; |
89 | if (chrome && chrome.app) { | ||
90 | check = chrome.app.getDetails(); | ||
91 | } | ||
92 | if (check !== null) { | ||
93 | //Adding an intercept to resources loaded to ensure user assets load from cloud simulator | ||
89 | chrome.webRequest.onBeforeRequest.addListener(this.handleWebRequest.bind(this), {urls: ["<all_urls>"]}, ["blocking"]); | 94 | chrome.webRequest.onBeforeRequest.addListener(this.handleWebRequest.bind(this), {urls: ["<all_urls>"]}, ["blocking"]); |
90 | } | 95 | } |
91 | } | 96 | } |