aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
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 /ext/fg/js
parent9fd6ee382d35fb5fcfc3e6d0f4fab711b37b693e (diff)
Delay CSS injection until a popup is created
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/popup.js1
1 files changed, 1 insertions, 0 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