mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
fix: change to non-reactive statements
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
window.location.href = '/';
|
||||
}
|
||||
|
||||
$: currentPath = page.url.pathname;
|
||||
$: returnParam =
|
||||
let currentPath = page.url.pathname;
|
||||
let returnParam =
|
||||
currentPath !== '/' ? `?return=${encodeURIComponent(page.url.pathname + page.url.search)}` : '';
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user