mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
Add mw.mmv.viewer shortcut for current MediaViewer instance
Bug: T76923 Change-Id: I38142b541d58e66fcef6e6e589507dcf30b1b3be
This commit is contained in:
parent
dc8c2bc545
commit
c0c50a8d35
|
@ -477,6 +477,7 @@
|
|||
if ( this.viewer === undefined ) {
|
||||
this.viewer = new mw.mmv.MultimediaViewer( mw.config );
|
||||
this.viewer.setupEventHandlers();
|
||||
mw.mmv.viewer = this.viewer;
|
||||
}
|
||||
|
||||
return this.viewer;
|
||||
|
|
Loading…
Reference in a new issue