diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2015-09-24 11:25:45 +0000 |
---|---|---|
committer | Einar Egilsson <einar@einaregilsson.com> | 2015-09-24 11:25:45 +0000 |
commit | 3adcb7ae1654928a8a86de4cf329dcd912bcbb33 (patch) | |
tree | 6a992508214e6d6a31af400e5ff8a192203e5fd0 /js/popup-scriptload.js | |
parent | f432a10a164e9a32f7bb915e5ca8cef5489f3ccd (diff) |
3.0.1. Fix Firefox disabling issues, simplify the chrome api shim, make things a bit more robust
Diffstat (limited to 'js/popup-scriptload.js')
-rw-r--r-- | js/popup-scriptload.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/popup-scriptload.js b/js/popup-scriptload.js new file mode 100644 index 0000000..bcb5370 --- /dev/null +++ b/js/popup-scriptload.js @@ -0,0 +1,13 @@ + +//Do it this way to make the Firefox version work with content +//scripts and all that crap. Will be removed when everything +//can use the WebExtensions API. + +function loadScript(path) { + document.write('<script src="' + path + '"></script>'); +} + +if (typeof chrome !== 'undefined') { + loadScript("js/angular.min.js"); + loadScript("js/popup.js"); +} |