mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-21 17:34:46 -05:00
Update common.ts
This commit is contained in:
parent
0312d7dcf2
commit
7a97396340
|
|
@ -20,7 +20,7 @@ export const forte_permitted_list = {
|
|||
}
|
||||
|
||||
async function ReadData(filename: string) {
|
||||
if (!IO.Exists(`data/${filename}.xml`)) {
|
||||
if (!IO.Exists(`data/${filename}.json.b64`)) {
|
||||
const xml = await IO.ReadFile(`data/${filename}.xml`, 'utf-8');
|
||||
const json = U.parseXML(xml, false)
|
||||
// await IO.WriteFile(`data/${filename}.json.b64`, Buffer.from(JSON.stringify(json)).toString('base64'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user