mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Upgrade Electron to 28.1.5
Co-authored-by: Fedor Indutny <238531+indutny@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user