Fixed incompatibility with ViolentMonkey.
This commit is contained in:
@@ -226,7 +226,7 @@ unsafeWindow.GM_download = GM_download;
|
||||
|
||||
function urlToPromise(url) {
|
||||
return new Promise((resolve, reject) => {
|
||||
GM.xmlHttpRequest({
|
||||
GM_xmlhttpRequest({
|
||||
method: "GET", url: url, responseType: "blob", onload: (response) => {
|
||||
console.debug("fetched song", url, response.response);
|
||||
resolve(response.response);
|
||||
|
||||
Reference in New Issue
Block a user