let isDialogActive = false; // Messages received by client window.addEventListener('message', (event) => { let data = event.data; let action = data.action; if (action != 'showNotAllowedDialog') return; if (isDialogActive) return; const div = $(`
${getLocalizedText("menu:not_allowed:you_are_not_allowed")}
${getLocalizedText("menu:not_allowed:if_you_are_admin")}
Server restart required
# Only use one of these. If one doesn't work, try another one