Fix linting issues.

This commit is contained in:
Bauke 2023-03-26 14:33:08 +02:00
parent 2e1c7edfa1
commit 75eddf0e17
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 8 additions and 3 deletions

View File

@ -71,17 +71,22 @@ export async function contextClicked(
let url: string | undefined;
switch (id) {
case 'queue-add-new-link':
case 'queue-add-new-link': {
text = info.linkText;
url = info.linkUrl;
break;
case 'queue-add-new-link-tab':
}
case 'queue-add-new-link-tab': {
text = tab?.title;
url = info.pageUrl;
break;
default:
}
default: {
console.warn(`Encountered unknown context menu ID: ${id}`);
return;
}
}
if (url === undefined) {