Stephen Seo
e77d25996d
When the front-end connects to the back-end, it creates a callback that sends a disconnect message with the received ID on "pagehide" and "beforeunload" events. The previous implementation did not "undo" these callbacks when the game was reset and a new ID was received. This fix prevents the front-end from resending disconnect messages with previously received IDs on browser window/tab close.
19 lines
702 B
TOML
19 lines
702 B
TOML
[package]
|
|
name = "four_line_dropper_frontend"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
yew = "0.19"
|
|
log = "0.4.6"
|
|
wasm-logger = "0.2.0"
|
|
web-sys = { version = "0.3.56", features = ["Window", "Document", "Element", "Request", "RequestInit", "Headers", "RequestMode", "Response", "ReadableStream", "AddEventListenerOptions", "EventListenerOptions", "EventTarget"] }
|
|
js-sys = "0.3.56"
|
|
oorandom = "11.1.3"
|
|
wasm-bindgen = { version = "0.2.79", features = ["serde-serialize"] }
|
|
wasm-bindgen-futures = "0.4.29"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|