diff --git a/resources/mmv/mmv.bootstrap.js b/resources/mmv/mmv.bootstrap.js index 4efd48d8f..12c9bbe39 100644 --- a/resources/mmv/mmv.bootstrap.js +++ b/resources/mmv/mmv.bootstrap.js @@ -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;