improve appstore url query parsing

This commit is contained in:
Johannes Zellner
2025-05-05 15:27:13 +02:00
parent 45e6ef09a8
commit a7e26055b2

View File

@@ -77,7 +77,8 @@ onMounted(async () => {
const query = window.location.hash.slice('#/appstore/'.length);
if (query) {
const appId = query.split('?')[0];
const version = query.slice(query.indexOf('version=')+'version='.length);
const params = new URLSearchParams(window.location.hash.slice(window.location.hash.indexOf('?')));
const version = params.get('version') || 'latest';
const app = await getApp(appId, version);
if (app) {