diff options
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"); +} |