From 4c73321747e6a1d2d28e0a927ff2050a11469666 Mon Sep 17 00:00:00 2001 From: mvlabat Date: Sun, 5 Nov 2023 21:37:52 +0200 Subject: [PATCH] Fix compiling in WASM --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1679b2a6e..54ebdfdac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,9 @@ webbrowser = { version = "0.8.2", optional = true } arboard = { version = "3.2.0", optional = true } thread_local = { version = "1.1.0", optional = true } +[target.'cfg(target_arch = "wasm32")'.dependencies] +web-sys = "=0.3.64" + [dev-dependencies] once_cell = "1.16.0" version-sync = "0.9.4"