(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 |
userSettings |
Object | An object returned by |
config |
mw.Map |
- Source:
Returns:
Null when there is no way the popup type can be enabled at run-time.
- Type
- boolean | null