From af5eae0311e90e18c0d663dea497b4540c38b9c6 Mon Sep 17 00:00:00 2001 From: bingenito Date: Mon, 2 Apr 2018 12:22:40 -0400 Subject: [PATCH] Relative url support for ElectronContainer.createWindow electron.ts: - Ensure all url passed to new BrowserWindow are converted to absolute Fixes #140 --- src/Electron/electron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Electron/electron.ts b/src/Electron/electron.ts index ddeba5fe..2ef9d48d 100644 --- a/src/Electron/electron.ts +++ b/src/Electron/electron.ts @@ -327,7 +327,7 @@ export class ElectronContainer extends WebContainerBase { this.windowManager.initializeWindow(electronWindow, windowName, newOptions); } - electronWindow.loadURL(url); + electronWindow.loadURL(this.ensureAbsoluteUrl(url)); const newWindow = this.wrapWindow(electronWindow); this.emit("window-created", { sender: this, name: "window-created", window: newWindow, windowId: electronWindow.id, windowName: windowName });