We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68447ed commit 1d423a5Copy full SHA for 1d423a5
1 file changed
e2e-webview/support/app.ts
@@ -1,7 +1,9 @@
1
-// Tauri 2 serves the embedded frontend over a custom scheme. Windows/WebView2
2
-// requires an https origin; macOS/Linux use a custom protocol scheme.
+// Tauri 2 serves the embedded frontend over a custom scheme. On Windows the
+// default is http://tauri.localhost (https only when app.windows.useHttpsScheme
3
+// is set in tauri.conf.json — we don't); macOS/Linux use tauri://localhost.
4
+// Hitting https://tauri.localhost on Windows yields ERR_CONNECTION_REFUSED.
5
export function appUrl(): string {
- return process.platform === 'win32' ? 'https://tauri.localhost' : 'tauri://localhost';
6
+ return process.platform === 'win32' ? 'http://tauri.localhost' : 'tauri://localhost';
7
}
8
9
export async function openApp(browser: WebdriverIO.Browser): Promise<void> {
0 commit comments