improve appstore url query parsing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user