diff options
author | Vijay A <avijayr@protonmail.com> | 2021-05-12 21:53:51 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-13 18:04:20 +0530 |
commit | 36a93851f7acea6e8d902a1276e8bd9a21a18069 (patch) | |
tree | 71eabfdafe65aef8b4ed900aded23da2c1f11cdf /src/index.js | |
parent | Specify node, npm and node-gyp versions. (diff) | |
download | ferdium-app-36a93851f7acea6e8d902a1276e8bd9a21a18069.tar.gz ferdium-app-36a93851f7acea6e8d902a1276e8bd9a21a18069.tar.zst ferdium-app-36a93851f7acea6e8d902a1276e8bd9a21a18069.zip |
[Franz catchup] Use a newer maintained module to trigger and capture permissions on macos.
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 2586ab401..d251af958 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -10,6 +10,7 @@ import fs from 'fs-extra'; | |||
10 | import path from 'path'; | 10 | import path from 'path'; |
11 | import windowStateKeeper from 'electron-window-state'; | 11 | import windowStateKeeper from 'electron-window-state'; |
12 | import { enforceMacOSAppLocation } from 'electron-util'; | 12 | import { enforceMacOSAppLocation } from 'electron-util'; |
13 | import ms from 'ms'; | ||
13 | 14 | ||
14 | // TODO: This seems to be duplicated between here and 'config.js' | 15 | // TODO: This seems to be duplicated between here and 'config.js' |
15 | // Set app directory before loading user modules | 16 | // Set app directory before loading user modules |
@@ -328,7 +329,7 @@ const createWindow = () => { | |||
328 | }); | 329 | }); |
329 | 330 | ||
330 | if (isMac) { | 331 | if (isMac) { |
331 | askFormacOSPermissions(); | 332 | setTimeout(() => askFormacOSPermissions(mainWindow), ms('30s')); |
332 | } | 333 | } |
333 | 334 | ||
334 | mainWindow.on('show', () => { | 335 | mainWindow.on('show', () => { |