diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-16 22:55:43 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-16 22:55:43 -0500 |
| commit | 4d0a8140130ebd0f46744b86eeb2a708657a942e (patch) | |
| tree | 6b1a11e07173c769d0f3522c2f6088409b69332d /crates/client/src/helpers.js | |
| parent | 33d69b282e082acce3c5d36cc08cd99a7ccf738d (diff) | |
Switch to workspace
Diffstat (limited to 'crates/client/src/helpers.js')
| -rw-r--r-- | crates/client/src/helpers.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/client/src/helpers.js b/crates/client/src/helpers.js new file mode 100644 index 0000000..20b86f4 --- /dev/null +++ b/crates/client/src/helpers.js @@ -0,0 +1,13 @@ +let resized = false; + +export async function js_track_resized_setup() { + window.addEventListener("resize", () => { + resized = true; + }); +}; + +export function js_poll_resized() { + let ret = resized; + resized = false; + return ret; +} |
