Module: isReferencePreviewsEnabled

(require("isReferencePreviewsEnabled"))(user, userSettings, config) → {boolean|null}

Given the global state of the application, creates a function that gets whether or not the user should have Reference Previews enabled.

Parameters:
Name Type Description
user mw.user

The mw.user singleton instance

userSettings Object

An object returned by userSettings.js

config mw.Map
Source:
Returns:

Null when there is no way the popup type can be enabled at run-time.

Type
boolean | null