add event listener for drm fuckery
This commit is contained in:
parent
0e55ca0f3c
commit
430df8ff41
1 changed files with 5 additions and 0 deletions
|
@ -3187,6 +3187,11 @@ document.addEventListener('musickitloaded', function () {
|
|||
};
|
||||
request.open("GET", "https://api.cider.sh/");
|
||||
request.send();
|
||||
|
||||
// check for widevine failure and reconfigure the instance.
|
||||
window.addEventListener("drmUnsupported", function () {
|
||||
initMusicKit()
|
||||
});
|
||||
});
|
||||
|
||||
if ('serviceWorker' in navigator) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue