update multiplier on navgation
This commit is contained in:
parent
0bfbb6da10
commit
687063f216
@ -1,7 +1,8 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { onNavigate } from "$app/navigation";
|
||||
export let data
|
||||
let multiplier = 1
|
||||
let multiplier;
|
||||
let custom_mul = "…"
|
||||
|
||||
onMount(() => {
|
||||
@ -9,6 +10,10 @@ onMount(() => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
multiplier = urlParams.get('multiplier') || 1;
|
||||
})
|
||||
onNavigate(() => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
multiplier = urlParams.get('multiplier') || 1;
|
||||
})
|
||||
|
||||
function convertFloatsToFractions(inputString) {
|
||||
// Split the input string into individual words
|
||||
|
Loading…
Reference in New Issue
Block a user