mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
Add linter fixes for new AI samples (#1484)
This commit is contained in:
@@ -67,11 +67,10 @@ chrome.runtime.onMessage.addListener(async ({ data }) => {
|
||||
});
|
||||
|
||||
function isValidUrl(string) {
|
||||
let url;
|
||||
|
||||
try {
|
||||
url = new URL(string);
|
||||
new URL(string);
|
||||
return true;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
} catch (_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user