style: codacy fixes

This commit is contained in:
David Ralph
2021-08-21 11:11:00 +01:00
parent ef2f666ccf
commit 490f42a9ad
16 changed files with 28 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
// since there is so much code in the component, we have moved it to a separate file
export function videoCheck(url) {
return url.startsWith('data:video/') || url.endsWith('.mp4') || url.endsWith('.webm') || url.endsWith('.ogg');
};
}
export function offlineBackground() {
const offlineImages = require('./offlineImages.json');
@@ -20,7 +20,7 @@ export function offlineBackground() {
offline: true,
credit: photographer
}
}
};
localStorage.setItem('currentBackground', JSON.stringify(object));