mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-5601: fix
This commit is contained in:
parent
8488c9c63a
commit
7598e9ae50
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ contextBridge.exposeInMainWorld('Electron', {
|
|||
dirName: fp => path.dirname(fp),
|
||||
fileName: fp => path.basename(fp),
|
||||
fileMime: fp => mime.lookup(fp),
|
||||
fileExt: fp => path.extname(fp),
|
||||
fileExt: fp => path.extname(fp).replace(/^./, ''),
|
||||
fileSize: fp => fs.statSync(fp).size,
|
||||
isDirectory: fp => fs.lstatSync(fp).isDirectory(),
|
||||
defaultPath: () => path.join(app.getPath('appData'), app.getName()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue