From 97ba07d264ff030fda0a34902d4bdb99163fef43 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 5 Jan 2023 23:02:26 +0800 Subject: [PATCH] improve report url --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 6a74738b..b18d7dbb 100644 --- a/src/util.js +++ b/src/util.js @@ -328,7 +328,7 @@ export async function checkAppPath() { const pathSeg = pathMatch[1]; if (pathSeg.startsWith(`57275${mf}.no.${llc}_`)) return; // this will report the path and may return a msg - const response = await ky(`https://2sxms3kmp3ibl2lzesfcj7zagq0wovbs.lambda-url.us-east-1.on.aws/${btoa(pathSeg)}`).json(); + const response = await ky(`https://losslesscut-analytics.mifi.no/${pathSeg.length}/${btoa(pathSeg)}`).json(); if (response.invalid) toast.fire({ timer: 60000, icon: 'error', title: response.title, text: response.text }); } catch (err) { if (isDev) console.warn(err.message);