migrate to esm structure

This commit is contained in:
TheBeastLT
2023-10-31 14:21:04 +02:00
parent c7fa8e9c50
commit 86cf502725
30 changed files with 242 additions and 311 deletions

View File

@@ -8,11 +8,9 @@ const staticVideoUrls = {
FAILED_INFRINGEMENT: `videos/failed_infringement_v2.mp4`
}
function isStaticUrl(url) {
export function isStaticUrl(url) {
return Object.values(staticVideoUrls).some(videoUrl => url?.endsWith(videoUrl));
}
module.exports = {
...staticVideoUrls,
isStaticUrl
}
export default staticVideoUrls