MediaWiki:Common.js: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 11: | Linha 11: | ||
lucideIconsTimer = setInterval(() => { | lucideIconsTimer = setInterval(() => { | ||
if (!"lucide" in window) return; | if (!"lucide" in window) return; | ||
lucide.createIcons(); | lucide?.createIcons(); | ||
clearInterval(lucideIconsTimer); | clearInterval(lucideIconsTimer); | ||
}, 10); | }, 10); | ||
})(); | })(); | ||
Edição das 15h24min de 8 de setembro de 2025
(() => {
/*
* init LucideIcons
*/
const lucideIconsScript = document.createElement("script");
lucideIconsScript.setAttribute("src", "https://unpkg.com/lucide@latest/dist/umd/lucide.js");
document.head.appendChild(lucideIconsScript);
let lucideIconsTimer;
lucideIconsTimer = setInterval(() => {
if (!"lucide" in window) return;
lucide?.createIcons();
clearInterval(lucideIconsTimer);
}, 10);
})();