aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-16 13:53:19 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-16 21:46:13 -0500
commit3d27e80ae646bcc9c421cbc8aa281008f47c8992 (patch)
tree35ecfc1f01efacea9c0524521ba30c7302f4dc0c
parent9fd6ee382d35fb5fcfc3e6d0f4fab711b37b693e (diff)
Delay CSS injection until a popup is created
-rw-r--r--ext/fg/js/popup.js1
-rw-r--r--ext/manifest.json1
2 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index d799e371..dc538b02 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -220,6 +220,7 @@ class Popup {
this._observeFullscreen(true);
this._onFullscreenChanged();
try {
+ Popup._injectStylesheet('yomichan-popup-outer-stylesheet', 'file', '/fg/css/client.css', true);
this.setCustomOuterCss(this._options.general.customPopupOuterCss, true);
} catch (e) {
// NOP
diff --git a/ext/manifest.json b/ext/manifest.json
index 68a8adb4..b86459f9 100644
--- a/ext/manifest.json
+++ b/ext/manifest.json
@@ -30,7 +30,6 @@
"fg/js/frontend.js",
"fg/js/frontend-initialize.js"
],
- "css": ["fg/css/client.css"],
"match_about_blank": true,
"all_frames": true
}],