mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
trackSubscriber: data isn't required
Editor-fixing caused errors on some events which don't pass data in.
Introduced in 8f612fbe64
.
Change-Id: I5c9471e6ffe4cdda0bf5455c80ef70251690e20f
This commit is contained in:
parent
fde0c180aa
commit
e66d58076f
|
@ -95,7 +95,7 @@
|
|||
}
|
||||
|
||||
// Convert mode=source/visual to editor name
|
||||
if ( data.mode ) {
|
||||
if ( data && data.mode ) {
|
||||
data.editor = data.mode === 'source' ? 'wikitext-2017' : 'visualeditor';
|
||||
delete data.mode;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue