mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 02:17:53 +01:00
fix my own mistake - 1
This commit is contained in:
1 parent
bcdaa5561c
commit
eb362ab17b
1 file changed
+4
-2
@@ -19,10 +19,12 @@ function cLog(text, subtext = '') {
|
|||||||
console.log(`[Return Youtube Dislikes] ${text} ${subtext}`);
|
console.log(`[Return Youtube Dislikes] ${text} ${subtext}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function doXHR(opts) {
|
if (typeof GM_xmlhttpRequest === 'function') {
|
||||||
if (typeof GM_xmlhttpRequest === 'function' || typeof GM.xmlHttpRequest === 'function') {
|
|
||||||
return GM_xmlhttpRequest(opts);
|
return GM_xmlhttpRequest(opts);
|
||||||
}
|
}
|
||||||
|
if (typeof GM.xmlHttpRequest === 'function') {
|
||||||
|
return GM.xmlHttpRequest(opts);
|
||||||
|
}
|
||||||
|
|
||||||
console.warn('Unable to detect UserScript plugin, falling back to native XHR.');
|
console.warn('Unable to detect UserScript plugin, falling back to native XHR.');
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user