mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Rename files
This commit is contained in:
11
ts/util/openLinkInWebBrowser.dom.ts
Normal file
11
ts/util/openLinkInWebBrowser.dom.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isValidLink } from '../types/LinkPreview.std.js';
|
||||
|
||||
export function openLinkInWebBrowser(url: string): void {
|
||||
if (!isValidLink(url)) {
|
||||
return;
|
||||
}
|
||||
window.location.href = url;
|
||||
}
|
||||
Reference in New Issue
Block a user