chore: re-enable node/no-deprecated-api linting (#38899)

* chore: re-enable node/no-deprecated-api linting

* chore: re-enable no-global-assign linting
This commit is contained in:
Milan Burda
2023-06-26 19:51:59 +02:00
committed by GitHub
parent acba6d79fb
commit 81a454d148
3 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
import { dialog, Menu } from 'electron/main';
import * as fs from 'fs';
import * as url from 'url';
import { ipcMainInternal } from '@electron/internal/browser/ipc-main-internal';
import * as ipcMainUtils from '@electron/internal/browser/ipc-main-internal-utils';
@@ -49,7 +48,7 @@ const getEditMenuItems = function (): Electron.MenuItemConstructorOptions[] {
};
const isChromeDevTools = function (pageURL: string) {
const { protocol } = url.parse(pageURL);
const { protocol } = new URL(pageURL);
return protocol === 'devtools:';
};