Make it easier to switch between subscription plans

This commit is contained in:
2024-02-22 17:20:41 +01:00
parent 5c9c66746a
commit 20610204e5
5 changed files with 227 additions and 111 deletions

View File

@@ -140,7 +140,7 @@ onMount(() => {
// Parse the results saved in the URL, if any
if (window.location.hash[0] === "#") {
const hash = window.location.hash.replace("#", "");
const result = hash.replace("#", "").split('&').reduce((res, item) => {
const result = hash.split('&').reduce((res, item) => {
const parts = item.split('=')
const n = Number(parts[1])
if (n !== NaN) {