[Store] Added localised path support for repo images

pull/43/head
Oj18 3 years ago
parent c214f7a857
commit e42a33b13b

@ -7,6 +7,7 @@
- ### Store
- Fixed id cache not being invalidated every day
- Added localised path support for repo images, like using /images/file.png
- ### i18n
- Fixed getting Discord's values not working, caused settings and more to not appear correctly

@ -257,7 +257,14 @@ export default {
tags: m.tags,
github: m.github,
images: m.images,
images: m.images.map((x) => {
if (x.startsWith('/')) {
const baseUrl = m.repo.split('/').slice(0, -1).join('/');
x = baseUrl + x;
}
return x;
}),
lastUpdated: m.lastUpdated,
buttonType: goosemodScope.modules[m.name] || goosemodScope.disabledModules[m.name] ? 'danger' : 'brand',

Loading…
Cancel
Save