1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

encode base64

This commit is contained in:
Mikael Finstad 2023-09-24 15:37:13 +08:00
parent c7759d2736
commit d0a9f27f23
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -292,7 +292,9 @@ export async function checkAppPath() {
const pathSeg = pathMatch[1];
if (pathSeg.startsWith(`57275${mf}.${llc}_`)) return;
// this will report the path and may return a msg
const response = await ky(`https://losslesscut-analytics.mifi.no/${pathSeg.length}/${btoa(pathSeg)}`).json();
const url = `https://losslesscut-analytics.mifi.no/${pathSeg.length}/${encodeURIComponent(btoa(pathSeg))}`;
// console.log('Reporting app', pathSeg, url);
const response = await ky(url).json();
if (response.invalid) toast.fire({ timer: 60000, icon: 'error', title: response.title, text: response.text });
} catch (err) {
if (isDev) console.warn(err.message);