aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/action-popup-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-19 07:30:17 -0500
committerGitHub <noreply@github.com>2024-02-19 12:30:17 +0000
commit2da866f982930c76d2317a3be426410683ecf5a2 (patch)
treee77ce545177ba398068cb63037096a56dea04e2c /ext/js/pages/action-popup-main.js
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/pages/action-popup-main.js')
-rw-r--r--ext/js/pages/action-popup-main.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/js/pages/action-popup-main.js b/ext/js/pages/action-popup-main.js
index 0a14c669..8dca8934 100644
--- a/ext/js/pages/action-popup-main.js
+++ b/ext/js/pages/action-popup-main.js
@@ -37,14 +37,14 @@ class DisplayController {
const manifest = chrome.runtime.getManifest();
this._showExtensionInfo(manifest);
- this._setupEnvironment();
+ void this._setupEnvironment();
this._setupButtonEvents('.action-open-search', 'openSearchPage', chrome.runtime.getURL('/search.html'), this._onSearchClick.bind(this));
this._setupButtonEvents('.action-open-info', 'openInfoPage', chrome.runtime.getURL('/info.html'));
const optionsFull = await this._api.optionsGetFull();
this._optionsFull = optionsFull;
- this._setupHotkeys();
+ void this._setupHotkeys();
const optionsPageUrl = (
typeof manifest.options_ui === 'object' &&
@@ -114,7 +114,7 @@ class DisplayController {
const result = customHandler(e);
if (typeof result !== 'undefined') { return; }
}
- this._api.commandExec(command, {mode: e.ctrlKey ? 'newTab' : 'existingOrNewTab'});
+ void this._api.commandExec(command, {mode: e.ctrlKey ? 'newTab' : 'existingOrNewTab'});
e.preventDefault();
};
/**
@@ -122,7 +122,7 @@ class DisplayController {
*/
const onAuxClick = (e) => {
if (e.button !== 1) { return; }
- this._api.commandExec(command, {mode: 'newTab'});
+ void this._api.commandExec(command, {mode: 'newTab'});
e.preventDefault();
};
node.addEventListener('click', onClick, false);
@@ -191,8 +191,8 @@ class DisplayController {
toggle.checked = extensionEnabled;
toggle.addEventListener('change', onToggleChanged, false);
}
- this._updateDictionariesEnabledWarnings(options);
- this._updatePermissionsWarnings(options);
+ void this._updateDictionariesEnabledWarnings(options);
+ void this._updatePermissionsWarnings(options);
}
/** */
@@ -240,7 +240,7 @@ class DisplayController {
const node = /** @type {HTMLInputElement} */ (event.currentTarget);
const value = Number.parseInt(node.value, 10);
if (typeof value === 'number' && Number.isFinite(value) && value >= 0 && value <= /** @type {import('settings').Options} */ (this._optionsFull).profiles.length) {
- this._setPrimaryProfileIndex(value);
+ void this._setPrimaryProfileIndex(value);
}
}
@@ -307,8 +307,8 @@ class DisplayController {
}
await Application.main(true, async (application) => {
- application.api.logIndicatorClear();
+ void application.api.logIndicatorClear();
const displayController = new DisplayController(application.api);
- displayController.prepare();
+ await displayController.prepare();
});