ModuleBuilder/moduleWrappers/electron/shell.js

5 lines
No EOL
186 B
JavaScript

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);
};