MediaWiki:Gadget-revisionjumper.js: Difference between revisions
MediaWiki:Gadget-revisionjumper.js (view source)
Revision as of 21:16, September 3, 2020
, 3 years agono edit summary
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 48: | Line 48: | ||
case 'hu': | case 'hu': | ||
var configrevisionjumper = new Array('változtatások a legutolsó szerkesztésem óta', | var configrevisionjumper = new Array('változtatások a legutolsó szerkesztésem óta', | ||
'eltérések az aktuális változattól', | 'eltérések az aktuális változattól', | ||
Line 147: | Line 146: | ||
let xhr = new XMLHttpRequest(); | let xhr = new XMLHttpRequest(); | ||
xhr.open(method, url); | xhr.open(method, url); | ||
xhr.onload = function () { | xhr.onload = function() { | ||
if (this.status >= 200 && this.status < 300) { | if (this.status >= 200 && this.status < 300) { | ||
resolve(xhr.response); | resolve(xhr.response); | ||
Line 157: | Line 156: | ||
} | } | ||
}; | }; | ||
xhr.onerror = function () { | xhr.onerror = function() { | ||
reject({ | reject({ | ||
status: this.status, | status: this.status, |