summaryrefslogtreecommitdiff
path: root/crates/client/dist/helpers.js
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-02-16 22:55:43 -0500
committerLLLL Colonq <llll@colonq>2025-02-16 22:55:43 -0500
commit4d0a8140130ebd0f46744b86eeb2a708657a942e (patch)
tree6b1a11e07173c769d0f3522c2f6088409b69332d /crates/client/dist/helpers.js
parent33d69b282e082acce3c5d36cc08cd99a7ccf738d (diff)
Switch to workspace
Diffstat (limited to 'crates/client/dist/helpers.js')
-rw-r--r--crates/client/dist/helpers.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/client/dist/helpers.js b/crates/client/dist/helpers.js
new file mode 100644
index 0000000..20b86f4
--- /dev/null
+++ b/crates/client/dist/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;
+}