mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Merge "mw.popups.isEnabled should always return boolean"
This commit is contained in:
commit
9cfd3358aa
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -20,7 +20,7 @@ export default function createMwPopups( store, registerModel, registerPreviewUI,
|
|||
* @return {boolean} If Page Previews are currently active
|
||||
*/
|
||||
isEnabled: function isEnabled() {
|
||||
return store.getState().preview.enabled[ previewTypes.TYPE_PAGE ];
|
||||
return !!store.getState().preview.enabled[ previewTypes.TYPE_PAGE ];
|
||||
},
|
||||
/**
|
||||
* @stable Do not remove properties in the type PopupModule without providing backwards
|
||||
|
|
Loading…
Reference in a new issue