mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-10 06:44:13 +00:00
Replace filename chars that cause issues on macOS
This commit is contained in:
parent
1e88124344
commit
73fdf69504
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ const quickScreenshot = async (
|
|||
if (image === undefined) {
|
||||
return { done: false };
|
||||
}
|
||||
const fileName = name.replace('/', '-').replace(':', '-');
|
||||
const fileName = name.replaceAll('/', '-').replaceAll(':', '-');
|
||||
const dir = path.join(homedir(), `Desktop/Responsively-Screenshots`);
|
||||
const filePath = path.join(dir, `/${fileName}-${Date.now()}.jpeg`);
|
||||
await ensureDir(dir);
|
||||
|
|
Loading…
Reference in a new issue