Open Android789515 opened 2 years ago
I'm not exactly sure what your dev stack is like for your use case, but I currently have a workaround to use jsmediatags
as an ES Module exclusively, in the browser (Relating to the issue I opened that you also commented on recently).
First, I load the <script>
tag into the window
like JS MediaTags currently supports. Then, I essentially create my own wrapper module that contains the jsmediatags
object from the window
, Lastly, to tidy things up a little, I remove it from the window
object so it is only accessible by using import
with my wrapper module.
Not really understanding the usage instructions, I need a bit of help.
I have a script tag:
however when I try to use it: