From 621a1f37976ec76c8873aba44179026bd605de49 Mon Sep 17 00:00:00 2001 From: cutls Date: Sat, 11 Aug 2018 07:13:26 +0900 Subject: [PATCH] TheDesk Akane (16.0.6) macOS --- app/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.js b/app/main.js index 5313055d..37270f93 100644 --- a/app/main.js +++ b/app/main.js @@ -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]);