Skip to content

Commit

Permalink
Type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel committed Jun 25, 2024
1 parent b23f628 commit fd5251d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/background/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function runCommand(args: CommandArgs): Promise<void> {

await backend.connect();
if (backend.state !== BackendConnectionState.Connected) {
chrome.runtime.openOptionsPage();
void chrome.runtime.openOptionsPage();
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/background/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ chrome.runtime.onStartup.addListener(startAndReportError);
chrome.runtime.onInstalled.addListener((e) => {
startAndReportError()
.then(() => {
if (e.reason === 'install') {
chrome.runtime.openOptionsPage();
if (e.reason === ('install' as chrome.runtime.OnInstalledReason)) {
void chrome.runtime.openOptionsPage();
}
})
.catch(noop);
Expand Down
2 changes: 1 addition & 1 deletion src/background/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function createUIMenus(): void {

const command = e.menuItemId as string;
if (command === 'settings') {
chrome.runtime.openOptionsPage();
void chrome.runtime.openOptionsPage();
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/options/components/shortcuts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { canEditShortcuts, shortcutsCanBeEditedOnlyManually } from 'common/featu
const Shortcuts: FunctionComponent = () => {
const openShortcuts = (e: Event) => {
e.preventDefault();
chrome.tabs.create({ url: 'chrome://extensions/shortcuts', active: true });
void chrome.tabs.create({ url: 'chrome://extensions/shortcuts', active: true });
};

return (
Expand Down

0 comments on commit fd5251d

Please sign in to comment.