User:Chaotic Enby/Unblock wizard.js: Difference between revisions

From Test Wiki
Content deleted Content added
update
Tag: Reverted
No edit summary
Tag: Reverted
Line 18: Line 18:
(async function () {
(async function () {


console.log("a");



var wizard = {}, ui = {}, block = {};
var wizard = {}, ui = {}, block = {};
Line 31: Line 31:
var demoMode = !!mw.util.getParamValue("demoMode");
var demoMode = !!mw.util.getParamValue("demoMode");
var usernameBlock = mw.util.getParamValue("usernameBlock");
var usernameBlock = mw.util.getParamValue("usernameBlock");

console.log("b");


await new mw.Api().loadMessagesIfMissing(['wikimedia-copyrightwarning', 'copyrightwarning']);
await new mw.Api().loadMessagesIfMissing(['wikimedia-copyrightwarning', 'copyrightwarning']);


console.log("c");
// TODO: move to a separate JSON subpage, would be feasible once [[phab:T198758]] is resolved
// TODO: move to a separate JSON subpage, would be feasible once [[phab:T198758]] is resolved
var messages = {
var messages = {