Git rid of no longer required workaround aadsm/jsmediatags#83

This commit is contained in:
Borewit 2018-10-18 08:37:56 +02:00 committed by Jordan Eldredge
parent 6d466b530c
commit 94fdec82b8

View file

@ -13,10 +13,6 @@ export function genMediaTags(
file != null,
"Attempted to get the tags of media file without passing a file"
);
// Workaround https://github.com/aadsm/jsmediatags/issues/83
if (typeof file === "string" && !/^[a-z]+:\/\//i.test(file)) {
file = `${location.protocol}//${location.host}${location.pathname}${file}`;
}
const options = {
duration: true,