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:
parent
acba6d79fb
commit
81a454d148
3 changed files with 4 additions and 5 deletions
|
@ -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:';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue