updated external links

This commit is contained in:
2024-10-31 20:21:29 +02:00
parent fd6411bb30
commit c0831df541
7 changed files with 26 additions and 22 deletions

View File

@@ -2,3 +2,8 @@ require('./rt/electron-rt');
//////////////////////////////
// User Defined Preload scripts below
console.log('User Preload!');
const { contextBridge, shell } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
openExternal: (url) => shell.openExternal(url)
});

View File

@@ -12,6 +12,7 @@ import electronServe from 'electron-serve';
import windowStateKeeper from 'electron-window-state';
import { join } from 'path';
// Define components for a watcher to detect when the webapp is changed so we can reload in Dev mode.
const reloadWatcher = {
debouncer: null,