diff --git a/modules/ppcp-settings/resources/js/switchSettingsUi.js b/modules/ppcp-settings/resources/js/switchSettingsUi.js index d7d77d4dd..ef69f8a3a 100644 --- a/modules/ppcp-settings/resources/js/switchSettingsUi.js +++ b/modules/ppcp-settings/resources/js/switchSettingsUi.js @@ -5,7 +5,7 @@ document.addEventListener( 'DOMContentLoaded', () => { ); const link = document.querySelector( 'a.settings-switch-ui' ); - if ( ! typeof config || ( ! button && ! link ) ) { + if ( typeof config === 'undefined' || ( ! button && ! link ) ) { return; }