mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Rename files
This commit is contained in:
9
ts/util/getMockServerPort.dom.ts
Normal file
9
ts/util/getMockServerPort.dom.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function getMockServerPort(
|
||||
serverUrl = window.SignalContext.config.serverUrl
|
||||
): string {
|
||||
const url = new URL(serverUrl);
|
||||
return url.port;
|
||||
}
|
||||
Reference in New Issue
Block a user