mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
Merge "Add mw.mmv.viewer shortcut for current MediaViewer instance"
This commit is contained in:
commit
f65d846b81
|
@ -486,6 +486,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