Fix linting issues.
This commit is contained in:
parent
2e1c7edfa1
commit
75eddf0e17
|
@ -71,17 +71,22 @@ export async function contextClicked(
|
||||||
let url: string | undefined;
|
let url: string | undefined;
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 'queue-add-new-link':
|
case 'queue-add-new-link': {
|
||||||
text = info.linkText;
|
text = info.linkText;
|
||||||
url = info.linkUrl;
|
url = info.linkUrl;
|
||||||
break;
|
break;
|
||||||
case 'queue-add-new-link-tab':
|
}
|
||||||
|
|
||||||
|
case 'queue-add-new-link-tab': {
|
||||||
text = tab?.title;
|
text = tab?.title;
|
||||||
url = info.pageUrl;
|
url = info.pageUrl;
|
||||||
break;
|
break;
|
||||||
default:
|
}
|
||||||
|
|
||||||
|
default: {
|
||||||
console.warn(`Encountered unknown context menu ID: ${id}`);
|
console.warn(`Encountered unknown context menu ID: ${id}`);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url === undefined) {
|
if (url === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue