mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
simplify code
This commit is contained in:
parent
580265b5cf
commit
ad8695f650
@ -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>
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user