Delay CSS injection until a popup is created
This commit is contained in:
parent
9fd6ee382d
commit
3d27e80ae6
@ -220,6 +220,7 @@ class Popup {
|
|||||||
this._observeFullscreen(true);
|
this._observeFullscreen(true);
|
||||||
this._onFullscreenChanged();
|
this._onFullscreenChanged();
|
||||||
try {
|
try {
|
||||||
|
Popup._injectStylesheet('yomichan-popup-outer-stylesheet', 'file', '/fg/css/client.css', true);
|
||||||
this.setCustomOuterCss(this._options.general.customPopupOuterCss, true);
|
this.setCustomOuterCss(this._options.general.customPopupOuterCss, true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// NOP
|
// NOP
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
"fg/js/frontend.js",
|
"fg/js/frontend.js",
|
||||||
"fg/js/frontend-initialize.js"
|
"fg/js/frontend-initialize.js"
|
||||||
],
|
],
|
||||||
"css": ["fg/css/client.css"],
|
|
||||||
"match_about_blank": true,
|
"match_about_blank": true,
|
||||||
"all_frames": true
|
"all_frames": true
|
||||||
}],
|
}],
|
||||||
|
Loading…
Reference in New Issue
Block a user