1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

CU-tjv0rr: fix tmp path

This commit is contained in:
Andrew Simachev 2021-04-27 14:11:26 +03:00
parent 1cc638a54f
commit 62ba10231c
2 changed files with 4 additions and 35 deletions

View file

@ -298,20 +298,6 @@ function createWindow () {
send.apply(this, args);
});
ipcMain.on('screenshot', (event, arg) => {
win.webContents.capturePage().then((image) => {
const fp = path.join(tmpPath, 'screenshot.jpg');
fs.writeFile(fp, image.toJPEG(90), (err) => {
if (err) {
throw err;
};
send('commandEditor', 'screenshot', fp);
});
});
});
ipcMain.on('winCommand', (e, cmd) => {
switch (cmd) {
case 'menu':