aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-16 13:29:55 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-16 21:44:45 -0500
commitb6a50e234cf4fc6179725082f9f53ddd7325ba01 (patch)
tree46f0e967f3dfdc5a16cad8074610c73d2c61f95c
parent2c3f510010ca2910b8c227a9888e2c3584840402 (diff)
Change parameter name
-rw-r--r--ext/bg/js/settings/popup-preview-frame.js2
-rw-r--r--ext/fg/js/popup.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame.js b/ext/bg/js/settings/popup-preview-frame.js
index 8fd06222..a7863b3a 100644
--- a/ext/bg/js/settings/popup-preview-frame.js
+++ b/ext/bg/js/settings/popup-preview-frame.js
@@ -137,7 +137,7 @@ class SettingsPopupPreview {
setCustomOuterCss(css) {
if (this.frontend === null) { return; }
- this.frontend.popup.setCustomOuterCss(css, true);
+ this.frontend.popup.setCustomOuterCss(css, false);
}
async updateSearch() {
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 970c5343..6fbab62b 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -158,11 +158,11 @@ class Popup {
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.
if (this._stylesheetInjectedViaApi) { return; }
- if (injectDirectly || Popup._isOnExtensionPage()) {
+ if (!useWebExtensionApi || Popup._isOnExtensionPage()) {
Popup.injectOuterStylesheet(css);
} else {
if (!css) { return; }