diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-11-21 15:54:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-21 15:54:58 -0500 |
commit | 005f9658d98143ea1189482ae627405c8bf5a566 (patch) | |
tree | 712732685dd3300ad9403f17d2937486e3835661 /ext/js/pages/settings | |
parent | 06e70c1cd8a6e23b54ba9081caf82902820ceccd (diff) |
Action handler name disambiguation (#2018)
* Disambiguate PopupFactory action handlers
* Update HotkeyHandler action names
* Disambiguate Frontend action handlers
* Disambiguate Display action handlers
* Disambiguate PopupPreviewFrame action handlers
* Disambiguate Yomichan action handlers
* Disambiguate Frontend action handlers
* Disambiguate Display action handlers
* Disambiguate SearchDisplayController action handlers
Diffstat (limited to 'ext/js/pages/settings')
-rw-r--r-- | ext/js/pages/settings/popup-preview-controller.js | 6 | ||||
-rw-r--r-- | ext/js/pages/settings/popup-preview-frame.js | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/js/pages/settings/popup-preview-controller.js b/ext/js/pages/settings/popup-preview-controller.js index 2a47d385..9a00c845 100644 --- a/ext/js/pages/settings/popup-preview-controller.js +++ b/ext/js/pages/settings/popup-preview-controller.js @@ -52,16 +52,16 @@ class PopupPreviewController { } _onCustomCssChange() { - this._invoke('setCustomCss', {css: this._customCss.value}); + this._invoke('PopupPreviewFrame.setCustomCss', {css: this._customCss.value}); } _onCustomOuterCssChange() { - this._invoke('setCustomOuterCss', {css: this._customOuterCss.value}); + this._invoke('PopupPreviewFrame.setCustomOuterCss', {css: this._customOuterCss.value}); } _onOptionsContextChange() { const optionsContext = this._settingsController.getOptionsContext(); - this._invoke('updateOptionsContext', {optionsContext}); + this._invoke('PopupPreviewFrame.updateOptionsContext', {optionsContext}); } _invoke(action, params) { diff --git a/ext/js/pages/settings/popup-preview-frame.js b/ext/js/pages/settings/popup-preview-frame.js index 638dd414..2b29d5b9 100644 --- a/ext/js/pages/settings/popup-preview-frame.js +++ b/ext/js/pages/settings/popup-preview-frame.js @@ -38,10 +38,10 @@ class PopupPreviewFrame { this._targetOrigin = chrome.runtime.getURL('/').replace(/\/$/, ''); this._windowMessageHandlers = new Map([ - ['setText', this._onSetText.bind(this)], - ['setCustomCss', this._setCustomCss.bind(this)], - ['setCustomOuterCss', this._setCustomOuterCss.bind(this)], - ['updateOptionsContext', this._updateOptionsContext.bind(this)] + ['PopupPreviewFrame.setText', this._onSetText.bind(this)], + ['PopupPreviewFrame.setCustomCss', this._setCustomCss.bind(this)], + ['PopupPreviewFrame.setCustomOuterCss', this._setCustomOuterCss.bind(this)], + ['PopupPreviewFrame.updateOptionsContext', this._updateOptionsContext.bind(this)] ]); } |