Upgrade Electron to 28.1.5
Co-authored-by: Fedor Indutny <238531+indutny@users.noreply.github.com>
This commit is contained in:
parent
d97aa68716
commit
2bc0e4755c
24 changed files with 421 additions and 296 deletions
|
@ -3,7 +3,7 @@
|
|||
import 'urlpattern-polyfill';
|
||||
// We need to use the Node.js version of `URL` because chromium's `URL` doesn't
|
||||
// support custom protocols correctly.
|
||||
import { URL } from 'url';
|
||||
import { URL as NodeURL } from 'url';
|
||||
import { z } from 'zod';
|
||||
import { strictAssert } from './assert';
|
||||
import * as log from '../logging/log';
|
||||
|
@ -14,7 +14,7 @@ function toUrl(input: URL | string): URL | null {
|
|||
return input;
|
||||
}
|
||||
try {
|
||||
return new URL(input);
|
||||
return new NodeURL(input) as URL;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue