sparkbun 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/core/main.zig
CHANGED
|
@@ -900,8 +900,6 @@ export fn configureWebviewRuntime(
|
|
|
900
900
|
) bool {
|
|
901
901
|
clearLastError();
|
|
902
902
|
|
|
903
|
-
webview_runtime_state.rpc_port = rpc_port;
|
|
904
|
-
|
|
905
903
|
if (!replaceOptionalOwnedZ(&webview_runtime_state.preload_script, preload_script)) {
|
|
906
904
|
return false;
|
|
907
905
|
}
|
|
@@ -913,6 +911,16 @@ export fn configureWebviewRuntime(
|
|
|
913
911
|
return false;
|
|
914
912
|
}
|
|
915
913
|
|
|
914
|
+
// On Windows, skip the WebSocket transport server — RPC goes through
|
|
915
|
+
// the native WebView2 host bridge (postMessage) instead.
|
|
916
|
+
if (comptime builtin.os.tag == .windows) {
|
|
917
|
+
webview_runtime_state.rpc_port = 0;
|
|
918
|
+
webview_runtime_state.configured = true;
|
|
919
|
+
return true;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
webview_runtime_state.rpc_port = rpc_port;
|
|
923
|
+
|
|
916
924
|
if (!startHostTransportServer(rpc_port)) {
|
|
917
925
|
return false;
|
|
918
926
|
}
|