mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 16:26:00 +00:00
12 lines
219 B
TypeScript
12 lines
219 B
TypeScript
import getElectron from './getElectron';
|
|
|
|
export function openWebLink(href) {
|
|
const electron = getElectron();
|
|
|
|
if (electron) {
|
|
electron.send('open-link', href);
|
|
} else {
|
|
window.open(href, '_blank');
|
|
}
|
|
}
|