This commit is contained in:
Hayden 2023-07-22 23:07:11 -05:00
parent b8157f5eb1
commit 399239f54a
No known key found for this signature in database
GPG key ID: 17CF79474E257545
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@
function getQRCodeUrl(): string {
const currentURL = window.location.href;
return route(`/qrcode`, { 'data': encodeURIComponent(currentURL) });
return route(`/qrcode`, { data: encodeURIComponent(currentURL) });
}
</script>

View file

@ -76,7 +76,7 @@ export class BaseAPI {
// URL already has a query param, this will not work.
authURL(url: string): string {
if (this.attachmentToken) {
return route(url, { 'access_token': this.attachmentToken });
return route(url, { access_token: this.attachmentToken });
}
return url;
}

View file

@ -178,7 +178,7 @@
const data = `${origin}/a/${assetID}`;
return route(`/qrcode`, { 'data': encodeURIComponent(data) });
return route(`/qrcode`, { data: encodeURIComponent(data) });
}
function getItem(n: number): LabelData {