diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-02-10 15:56:30 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-02-25 12:51:51 +0100 |
| commit | f0dac8281c3a92c0bdb40542dc89ece64cb98669 (patch) | |
| tree | 9b6fed4bceb211f55dd401a2c33c9ff3a537c1d3 /desktop | |
| parent | 5548f178446d669a6a8811b1636fb6de97315fa3 (diff) | |
| download | mullvadvpn-f0dac8281c3a92c0bdb40542dc89ece64cb98669.tar.xz mullvadvpn-f0dac8281c3a92c0bdb40542dc89ece64cb98669.zip | |
Update mocked main to use index from vite build
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/packages/mullvad-vpn/test/e2e/setup/main.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/packages/mullvad-vpn/test/e2e/setup/main.ts b/desktop/packages/mullvad-vpn/test/e2e/setup/main.ts index 1795451046..8fbd36ac39 100644 --- a/desktop/packages/mullvad-vpn/test/e2e/setup/main.ts +++ b/desktop/packages/mullvad-vpn/test/e2e/setup/main.ts @@ -126,7 +126,7 @@ class ApplicationMain { show: DEBUG, frame: true, webPreferences: { - preload: path.join(__dirname, '../../../src/renderer/preloadBundle.js'), + preload: path.join(__dirname, 'preload.js'), nodeIntegration: false, nodeIntegrationInWorker: false, nodeIntegrationInSubFrames: false, @@ -141,8 +141,7 @@ class ApplicationMain { this.registerIpcListeners(); - const filePath = path.resolve(path.join(__dirname, '../../../src/renderer/index.html')); - await window.loadFile(filePath); + await window.loadFile(path.join(__dirname, 'index.html')); if (DEBUG) { window.webContents.openDevTools({ mode: 'detach' }); |
