开发者文档

This commit is contained in:
undefined committed 2020-05-06 12:40:24 +08:00
1 parent 3e9b074e77
commit e7ce8c1f02
42 files changed
+349 -297

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ const active = [];
async function preload() {
const files = fs.readdirSync(root('.build/module'));
for (const file of files) {
if (file.endsWith('.hydro-module')) {
if (file.endsWith('.hydro')) {
const f = fs.readFileSync(root(`.build/module/${file}`));
active.push({ ...yaml.safeLoad(zlib.gunzipSync(f)), id: file.split('.')[0] });
}