aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-11-21 15:54:58 -0500
committerGitHub <noreply@github.com>2021-11-21 15:54:58 -0500
commit005f9658d98143ea1189482ae627405c8bf5a566 (patch)
tree712732685dd3300ad9403f17d2937486e3835661 /ext/js/display/display.js
parent06e70c1cd8a6e23b54ba9081caf82902820ceccd (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/display/display.js')
-rw-r--r--ext/js/display/display.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index caa1ce10..697e735f 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -128,15 +128,15 @@ class Display extends EventDispatcher {
['previousEntryDifferentDictionary', () => { this._focusEntryWithDifferentDictionary(-1, true); }]
]);
this.registerDirectMessageHandlers([
- ['setOptionsContext', {async: false, handler: this._onMessageSetOptionsContext.bind(this)}],
- ['setContent', {async: false, handler: this._onMessageSetContent.bind(this)}],
- ['setCustomCss', {async: false, handler: this._onMessageSetCustomCss.bind(this)}],
- ['setContentScale', {async: false, handler: this._onMessageSetContentScale.bind(this)}],
- ['configure', {async: true, handler: this._onMessageConfigure.bind(this)}],
- ['visibilityChanged', {async: false, handler: this._onMessageVisibilityChanged.bind(this)}]
+ ['Display.setOptionsContext', {async: false, handler: this._onMessageSetOptionsContext.bind(this)}],
+ ['Display.setContent', {async: false, handler: this._onMessageSetContent.bind(this)}],
+ ['Display.setCustomCss', {async: false, handler: this._onMessageSetCustomCss.bind(this)}],
+ ['Display.setContentScale', {async: false, handler: this._onMessageSetContentScale.bind(this)}],
+ ['Display.configure', {async: true, handler: this._onMessageConfigure.bind(this)}],
+ ['Display.visibilityChanged', {async: false, handler: this._onMessageVisibilityChanged.bind(this)}]
]);
this.registerWindowMessageHandlers([
- ['extensionUnloaded', {async: false, handler: this._onMessageExtensionUnloaded.bind(this)}]
+ ['Display.extensionUnloaded', {async: false, handler: this._onMessageExtensionUnloaded.bind(this)}]
]);
}
@@ -393,7 +393,7 @@ class Display extends EventDispatcher {
close() {
switch (this._pageType) {
case 'popup':
- this.invokeContentOrigin('closePopup');
+ this.invokeContentOrigin('Frontend.closePopup');
break;
case 'search':
this._closeTab();
@@ -1359,7 +1359,7 @@ class Display extends EventDispatcher {
{
let text;
try {
- text = await this.invokeContentOrigin('getSelectionText');
+ text = await this.invokeContentOrigin('Frontend.getSelectionText');
} catch (e) {
break;
}
@@ -1367,7 +1367,7 @@ class Display extends EventDispatcher {
}
break;
default:
- await this.invokeContentOrigin('copySelection');
+ await this.invokeContentOrigin('Frontend.copySelection');
break;
}
}