mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamShowboard-Legacy.git
synced 2025-04-29 08:06:32 +00:00
fix(ipc/window): 修正readFile方法的调用
修复了`prog:loadjson`事件处理函数中的一个错误,该错误涉及调用`fileUtils.readFile`方法时缺少结束分号。此更改确保了代码的一致性和正确性,符合语言的语法规则。
This commit is contained in:
parent
4153032537
commit
0e6b5cc33a
@ -24,10 +24,9 @@ const ipcWindow = {
|
||||
|
||||
ipcMain.on('prog:loadjson', async (event) => {
|
||||
const window = BrowserWindow.fromId(event.sender.id);
|
||||
const file = await fileUtils.readFile()
|
||||
const file = await fileUtils.readFile();
|
||||
await window.webContents.send('common:openFile', file);
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user