From b726e28229bbf6a770174afc50dae44e64d98cd4 Mon Sep 17 00:00:00 2001 From: llama <100429699+iamllama@users.noreply.github.com> Date: Sat, 14 Dec 2024 19:45:54 +0800 Subject: [PATCH] Remove use of window.location.href in CardInfoDialog (#3621) * Replace window.location in CardInfoDialog with load_sveltekit_page * Fix format * Fix ForgettingCurve's reactivity * Props' default args aren't reactive * Add global _updateCardId fn to card-info * Use _updateCardId to reactively update card-info * Fix format * Fix type * Use dummy form instead of window global for client-side nav * Fallback to window.location in case form hasn't been rendered * Use window.postMessage instead of dummy