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:
parent
1cc638a54f
commit
62ba10231c
2 changed files with 4 additions and 35 deletions
14
electron.js
14
electron.js
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue