Upgrade Electron to 28.1.5

Co-authored-by: Fedor Indutny <238531+indutny@users.noreply.github.com>
This commit is contained in:
Fedor Indutny 2024-01-23 16:11:12 -08:00 committed by GitHub
parent d97aa68716
commit 2bc0e4755c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 421 additions and 296 deletions

View file

@ -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;
}