TheDesk Akane (16.0.6) macOS

This commit is contained in:
cutls 2018-08-11 07:13:26 +09:00
parent 2fc7b6b183
commit 621a1f3797

View File

@ -581,8 +581,11 @@ ipc.on('mkc', (e, arg) => {
var platform=process.platform;
if(platform=="linux" || platform=="win32" ){
var mkc = fs.readFileSync(__dirname + '/.tkn', 'utf8');
mainWindow.webContents.send('mkcr', mkc);
}else{
var mkc = "";
}
mainWindow.webContents.send('mkcr', mkc);
});
ipc.on('export', (e, args) => {
fs.writeFileSync(args[0], args[1]);