aboutsummaryrefslogtreecommitdiff
path: root/src/main/ipcMain.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/ipcMain.ts')
-rw-r--r--src/main/ipcMain.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/ipcMain.ts b/src/main/ipcMain.ts
index 1dcb17c..c86268d 100644
--- a/src/main/ipcMain.ts
+++ b/src/main/ipcMain.ts
@@ -31,6 +31,7 @@ import monacoHtml from "~fileContent/../components/monacoWin.html;base64";
import { getThemeInfo, stripBOM, UserThemeHeader } from "./themes";
import { ALLOWED_PROTOCOLS, QUICKCSS_PATH, SETTINGS_DIR, SETTINGS_FILE, THEMES_DIR } from "./utils/constants";
+import { makeLinksOpenExternally } from "./utils/externalLinks";
mkdirSync(SETTINGS_DIR, { recursive: true });
mkdirSync(THEMES_DIR, { recursive: true });
@@ -143,5 +144,8 @@ ipcMain.handle(IpcEvents.OPEN_MONACO_EDITOR, async () => {
sandbox: false
}
});
+
+ makeLinksOpenExternally(win);
+
await win.loadURL(`data:text/html;base64,${monacoHtml}`);
});