mirror of
https://github.com/leaningtech/webvm.git
synced 2026-09-01 14:57:38 +08:00
Update tailscale_tun bundle
This commit is contained in:
committed by
Carlo Piovesan
parent
f9ca490190
commit
c6696bd2f2
Binary file not shown.
Binary file not shown.
@@ -29,7 +29,7 @@ export async function init() {
|
||||
const lazyRunIpn = async () => {
|
||||
const wasmUrl = new URL("tailscale.wasm", import.meta.url);
|
||||
const go = new window.Go();
|
||||
let {instance} = await fetch(wasmUrl).then(x => x.arrayBuffer()).then(x => WebAssembly.instantiate(x,go.importObject));
|
||||
let {instance} = await WebAssembly.instantiateStreaming(fetch(wasmUrl),go.importObject);
|
||||
go.run(instance);
|
||||
|
||||
const sessionStateStorage = {
|
||||
|
||||
Reference in New Issue
Block a user