Fix linting issues.
This commit is contained in:
parent
2e1c7edfa1
commit
75eddf0e17
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue