[ElectronCompat > Shell] Add openExternal

This commit is contained in:
Ducko 2021-06-07 18:00:02 +01:00 committed by Alyxia Sother
parent 41aec3cb61
commit e18c019720
No known key found for this signature in database
GPG Key ID: 355968D14144B739
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1,2 @@
export * as clipboard from './clipboard';
export * as clipboard from './clipboard';
export * as shell from './shell';

View File

@ -0,0 +1,5 @@
export const openExternal = (url) => {
// Discord makes new tabs / windows (via window.open) use electron.shell.openExternal internally, so just use window.open
window.open(url);
};