[ElectronCompat > Shell] Add openExternal
This commit is contained in:
parent
41aec3cb61
commit
e18c019720
|
@ -1 +1,2 @@
|
|||
export * as clipboard from './clipboard';
|
||||
export * as shell from './shell';
|
|
@ -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);
|
||||
};
|
Loading…
Reference in New Issue