diff --git a/moduleWrappers/electron/index.js b/moduleWrappers/electron/index.js index 29181d9..3295ba5 100644 --- a/moduleWrappers/electron/index.js +++ b/moduleWrappers/electron/index.js @@ -1 +1,2 @@ -export * as clipboard from './clipboard'; \ No newline at end of file +export * as clipboard from './clipboard'; +export * as shell from './shell'; \ No newline at end of file diff --git a/moduleWrappers/electron/shell.js b/moduleWrappers/electron/shell.js new file mode 100644 index 0000000..06d5575 --- /dev/null +++ b/moduleWrappers/electron/shell.js @@ -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); +}; \ No newline at end of file