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