aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-16 20:04:56 -0500
committerGitHub <noreply@github.com>2023-12-17 01:04:56 +0000
commitb249627434d3a94420ac4d98c3ce720767e57b43 (patch)
treeec46e2c020c5a63a5c2babf56376f53e288ed7f2 /ext/js/display/display.js
parentdecbc60f7734e739c0e5c41da294f65f9eec92fe (diff)
Update eslint spacing rules (#366)
* Add space-infix-ops rule * Add no-multi-spaces --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index b6a818ba..945ec0b9 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -196,6 +196,7 @@ export class Display extends EventDispatcher {
/** @type {ThemeController} */
this._themeController = new ThemeController(document.documentElement);
+ /* eslint-disable no-multi-spaces */
this._hotkeyHandler.registerActions([
['close', () => { this._onHotkeyClose(); }],
['nextEntry', this._onHotkeyActionMoveRelative.bind(this, 1)],
@@ -219,6 +220,7 @@ export class Display extends EventDispatcher {
this.registerWindowMessageHandlers([
['Display.extensionUnloaded', {async: false, handler: this._onMessageExtensionUnloaded.bind(this)}]
]);
+ /* eslint-enable no-multi-spaces */
}
/** @type {DisplayGenerator} */
@@ -586,7 +588,7 @@ export class Display extends EventDispatcher {
* @param {import('core').SerializableObject} [params]
* @returns {Promise<TReturn>}
*/
- async invokeContentOrigin(action, params={}) {
+ async invokeContentOrigin(action, params = {}) {
if (this._contentOriginTabId === this._tabId && this._contentOriginFrameId === this._frameId) {
throw new Error('Content origin is same page');
}
@@ -602,7 +604,7 @@ export class Display extends EventDispatcher {
* @param {import('core').SerializableObject} [params]
* @returns {Promise<TReturn>}
*/
- async invokeParentFrame(action, params={}) {
+ async invokeParentFrame(action, params = {}) {
if (this._parentFrameId === null || this._parentFrameId === this._frameId) {
throw new Error('Invalid parent frame');
}