Delay CSS injection until a popup is created

This commit is contained in:
toasted-nutbread 2020-02-16 13:53:19 -05:00
parent 9fd6ee382d
commit 3d27e80ae6
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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
}],