From dd673f0b2626c2bffbcb301dc364009f077c3d08 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 19 May 2020 20:33:06 -0400 Subject: 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 --- ext/bg/js/search-main.js | 3 --- ext/bg/settings-popup-preview.html | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/bg') 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 @@ + -- cgit v1.2.3