Merge pull request #64 from breakgimme/map-fix

fix map loading after migration from openfreemap to custom map backend
This commit is contained in:
SwingTheVine 2025-08-09 14:03:35 -05:00 committed by GitHub
commit 906d410578
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,7 +99,7 @@ inject(() => {
.catch(err => {
console.error(`%c${name}%c: Failed to parse JSON: `, consoleStyle, '', err);
});
} else if (contentType.includes('image/') && (!endpointName.includes('openfreemap'))) {
} else if (contentType.includes('image/') && (!endpointName.includes('openfreemap') && !endpointName.includes('maps'))) {
// Fetch custom for all images but opensourcemap
const blink = Date.now(); // Current time