aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-19 20:33:06 -0400
committerGitHub <noreply@github.com>2020-05-19 20:33:06 -0400
commitdd673f0b2626c2bffbcb301dc364009f077c3d08 (patch)
tree64319346c3e9a9debe76e62b6adc77034aec52e8 /ext/bg
parentdd6c3015c4af6db5f1deca797366ed6269b7d82c (diff)
Dynamic loader load style (#521)
* Remove unnecessary load of /fg/css/client.css * Replace dynamicLoader.loadStyles with dynamicLoader.loadStyle * Replace Popup._injectStylesheet with dynamicLoader.loadStyle * Remove unused global
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/search-main.js3
-rw-r--r--ext/bg/settings-popup-preview.html1
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/bg/js/search-main.js b/ext/bg/js/search-main.js
index 6e092fbc..54fa549d 100644
--- a/ext/bg/js/search-main.js
+++ b/ext/bg/js/search-main.js
@@ -23,9 +23,6 @@
*/
async function injectSearchFrontend() {
- dynamicLoader.loadStyles([
- '/fg/css/client.css'
- ]);
await dynamicLoader.loadScripts([
'/mixed/js/text-scanner.js',
'/fg/js/frontend-api-receiver.js',
diff --git a/ext/bg/settings-popup-preview.html b/ext/bg/settings-popup-preview.html
index 3d7f6455..2f0b841b 100644
--- a/ext/bg/settings-popup-preview.html
+++ b/ext/bg/settings-popup-preview.html
@@ -121,6 +121,7 @@
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/dom.js"></script>
<script src="/mixed/js/api.js"></script>
+ <script src="/mixed/js/dynamic-loader.js"></script>
<script src="/mixed/js/text-scanner.js"></script>
<script src="/fg/js/document.js"></script>