simplify code

This commit is contained in:
daria 2025-07-09 11:52:30 +03:00
parent 580265b5cf
commit ad8695f650
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<script src="/customize/pre-loading.js?ver=1.1"></script>
<link href="/customize/src/pre-loading.css?ver=1.0" rel="stylesheet" type="text/css">
<script async data-bootload="/customize/template.js" data-main="/common/boot.js?ver=1.0" src="/components/requirejs/require.js?ver=2.3.7"></script>
<script src="/customize/fonts/lucide.js"></script>
</head>
<body class="html">
<noscript></noscript>

View File

@ -12,13 +12,14 @@ define([
'/api/config',
'/common/extensions.js',
'optional!/api/instance',
'/customize/fonts/lucide.js'
], function (h, Language, Util, AppConfig, Msg, $, ApiConfig,
Extensions, Instance) {
Extensions, Instance, Lucide) {
var Pages = {};
Pages.setHTML = function (e, html) {
e.innerHTML = html;
setTimeout(() => lucide.createIcons(), 0);
setTimeout(() => Lucide.createIcons(), 0);
return e;
};