VisualEditor: Replace deprecated editToken with csrfToken

The editToken key of mw.users.tokens is deprecated since MediaWiki 1.27.

Bug: T233528
Change-Id: I7297e6abb159e9bb758859454b1097292e607117
This commit is contained in:
TheSandDoctor 2019-09-22 10:22:01 -07:00
parent 7f7cf6ce79
commit 70e3e7cc8b

View file

@ -20,7 +20,7 @@ ve.init.mw.Target = function VeInitMwTarget( config ) {
this.active = false;
this.pageName = mw.config.get( 'wgRelevantPageName' );
this.editToken = mw.user.tokens.get( 'editToken' );
this.editToken = mw.user.tokens.get( 'csrfToken' );
this.recovered = false;
this.fromEditedState = false;
this.originalHtml = null;