From 3a085a3f9d682ea2d3ee47e455e2cb701077ce3d Mon Sep 17 00:00:00 2001 From: jliddev Date: Tue, 22 Feb 2022 22:55:40 -0600 Subject: [PATCH] Fix Wago preload for Mac? --- .../src/app/components/common/webview/webview.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wowup-electron/src/app/components/common/webview/webview.component.ts b/wowup-electron/src/app/components/common/webview/webview.component.ts index f0d33784..3c02959b 100644 --- a/wowup-electron/src/app/components/common/webview/webview.component.ts +++ b/wowup-electron/src/app/components/common/webview/webview.component.ts @@ -56,7 +56,7 @@ export class WebViewComponent implements OnDestroy, AfterViewInit { const pageReferrer = this.options.referrer ? `httpreferrer="${this.options.referrer}"` : ""; const userAgent = this.options.userAgent ?? ""; const preload = this.options.preloadFilePath - ? `preload="${await this._fileService.getAssetFilePath(this.options.preloadFilePath)}"` + ? `preload="file://${await this._fileService.getAssetFilePath(this.options.preloadFilePath)}"` : ""; const partition = this.options.partition ?? "memcache";