mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[ElectronCompat > Shell] Add openExternal
This commit is contained in:
parent
41aec3cb61
commit
e18c019720
2 changed files with 7 additions and 1 deletions
|
@ -1 +1,2 @@
|
|||
export * as clipboard from './clipboard';
|
||||
export * as clipboard from './clipboard';
|
||||
export * as shell from './shell';
|
5
moduleWrappers/electron/shell.js
Normal file
5
moduleWrappers/electron/shell.js
Normal 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);
|
||||
};
|
Loading…
Reference in a new issue