mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Simplify URL handling
This commit is contained in:
@@ -522,9 +522,8 @@ async function handleUrl(rawTarget: string) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { protocol, hostname } = parsedUrl;
|
const { protocol } = parsedUrl;
|
||||||
const isDevServer =
|
const isDevServer = process.env.SIGNAL_ENABLE_HTTP;
|
||||||
process.env.SIGNAL_ENABLE_HTTP && hostname === 'localhost';
|
|
||||||
|
|
||||||
if ((protocol === 'http:' || protocol === 'https:') && !isDevServer) {
|
if ((protocol === 'http:' || protocol === 'https:') && !isDevServer) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user