Change parameter name
This commit is contained in:
parent
2c3f510010
commit
b6a50e234c
@ -137,7 +137,7 @@ class SettingsPopupPreview {
|
|||||||
|
|
||||||
setCustomOuterCss(css) {
|
setCustomOuterCss(css) {
|
||||||
if (this.frontend === null) { return; }
|
if (this.frontend === null) { return; }
|
||||||
this.frontend.popup.setCustomOuterCss(css, true);
|
this.frontend.popup.setCustomOuterCss(css, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateSearch() {
|
async updateSearch() {
|
||||||
|
@ -158,11 +158,11 @@ class Popup {
|
|||||||
this._container.dataset.yomichanSiteColor = this._getSiteColor();
|
this._container.dataset.yomichanSiteColor = this._getSiteColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
async setCustomOuterCss(css, injectDirectly) {
|
async setCustomOuterCss(css, useWebExtensionApi) {
|
||||||
// Cannot repeatedly inject stylesheets using web extension APIs since there is no way to remove them.
|
// Cannot repeatedly inject stylesheets using web extension APIs since there is no way to remove them.
|
||||||
if (this._stylesheetInjectedViaApi) { return; }
|
if (this._stylesheetInjectedViaApi) { return; }
|
||||||
|
|
||||||
if (injectDirectly || Popup._isOnExtensionPage()) {
|
if (!useWebExtensionApi || Popup._isOnExtensionPage()) {
|
||||||
Popup.injectOuterStylesheet(css);
|
Popup.injectOuterStylesheet(css);
|
||||||
} else {
|
} else {
|
||||||
if (!css) { return; }
|
if (!css) { return; }
|
||||||
|
Loading…
Reference in New Issue
Block a user