TheDesk Akane (16.0.6) macOS
This commit is contained in:
parent
2fc7b6b183
commit
621a1f3797
|
@ -581,8 +581,11 @@ ipc.on('mkc', (e, arg) => {
|
||||||
var platform=process.platform;
|
var platform=process.platform;
|
||||||
if(platform=="linux" || platform=="win32" ){
|
if(platform=="linux" || platform=="win32" ){
|
||||||
var mkc = fs.readFileSync(__dirname + '/.tkn', 'utf8');
|
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) => {
|
ipc.on('export', (e, args) => {
|
||||||
fs.writeFileSync(args[0], args[1]);
|
fs.writeFileSync(args[0], args[1]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user