This commit is contained in:
手瓜一十雪 2024-12-29 14:44:47 +08:00
parent 99a96e65e5
commit 2c78988924

View File

@ -90,7 +90,7 @@ export class WebUiConfigWrapper {
try {
const configPath = resolve(webUiPathWrapper.configPath, './webui.json');
if (!await fs.access(configPath, constants.R_OK | constants.W_OK).then(() => true).catch(() => false)) {
if (!await fs.access(configPath, constants.R_OK).then(() => true).catch(() => false)) {
await fs.writeFile(configPath, JSON.stringify(defaultconfig, null, 4));
}