fix: use constants, improve photoinformation ui

This commit is contained in:
David Ralph
2021-09-08 11:05:34 +01:00
parent 2984e162cc
commit 6bb461b8a2
3 changed files with 12 additions and 8 deletions

View File

@@ -93,7 +93,7 @@ export default class Added extends PureComponent {
updateCheck() {
let updates = 0;
this.state.installed.forEach(async (item) => {
const data = await (await fetch('https://marketplace.muetab.com/item/' + item.name)).json();
const data = await (await fetch(window.constants.MARKETPLACE_URL + '/item/' + item.name)).json();
if (data.version !== item.version) {
updates++;
}