improve report url

pull/1255/head
Mikael Finstad 4 years ago
parent e155af886a
commit 97ba07d264
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -328,7 +328,7 @@ export async function checkAppPath() {
const pathSeg = pathMatch[1]; const pathSeg = pathMatch[1];
if (pathSeg.startsWith(`57275${mf}.no.${llc}_`)) return; if (pathSeg.startsWith(`57275${mf}.no.${llc}_`)) return;
// this will report the path and may return a msg // 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 }); if (response.invalid) toast.fire({ timer: 60000, icon: 'error', title: response.title, text: response.text });
} catch (err) { } catch (err) {
if (isDev) console.warn(err.message); if (isDev) console.warn(err.message);

Loading…
Cancel
Save