mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-23 15:57:10 +00:00
Replace deprecated function (#100)
This is to mitigate a bug that has happened in MW 1.39.1. Clicking the "Clear infobox" button caused a TypeError exception: "mw.user.getName is not a function".
This commit is contained in:
parent
f5a69ef8db
commit
b2cb67ad21
|
@ -212,7 +212,7 @@
|
|||
}
|
||||
|
||||
clearInfobox() {
|
||||
OO.ui.confirm( mw.message( 'confirmable-confirm', mw.user.getName() ).text() )
|
||||
OO.ui.confirm( mw.message( 'confirmable-confirm', mw.config.get("wgUserName") ).text() )
|
||||
.done( ( confirmed ) => {
|
||||
if ( confirmed ) {
|
||||
this.deselect();
|
||||
|
|
Loading…
Reference in a new issue