fixes and polish on shortcodes

This commit is contained in:
Nuno Coração
2024-03-06 22:12:58 +00:00
parent 317245e67d
commit 7c0eacf44f
6 changed files with 30 additions and 465 deletions
-13
View File
@@ -48,23 +48,10 @@ function _registerZendModeButtonClick(zendModeButton) {
(function init() {
window.addEventListener("DOMContentLoaded", (event) => {
console.debug('[DEBUG] Zen-mode feature enable');
// Register click on 'zen-mode-button' node element
const zendModeButton = document.getElementById('zen-mode-button');
if(zendModeButton !== null && zendModeButton !== undefined) {
_registerZendModeButtonClick(zendModeButton);
console.log('[DEBUG] Zen-mode button found');
}else{
console.log('[DEBUG] Zen-mode button not found');
}
// Initialize localstorage option 'blowfish-zen-mode-enabled' to false, if it does not exist, otherwise enable it.
//if (localStorage.getItem('blowfish-zen-mode-enabled') === null) {
// localStorage.setItem('blowfish-zen-mode-enabled', 'false');
//} else if (localStorage.getItem('blowfish-zen-mode-enabled') === 'true') {
// _toogleZenMode(zendModeButton)
//}
});
})();