aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-05-12 21:53:51 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-13 18:04:20 +0530
commit36a93851f7acea6e8d902a1276e8bd9a21a18069 (patch)
tree71eabfdafe65aef8b4ed900aded23da2c1f11cdf /src/index.js
parentSpecify node, npm and node-gyp versions. (diff)
downloadferdium-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.js3
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';
10import path from 'path'; 10import path from 'path';
11import windowStateKeeper from 'electron-window-state'; 11import windowStateKeeper from 'electron-window-state';
12import { enforceMacOSAppLocation } from 'electron-util'; 12import { enforceMacOSAppLocation } from 'electron-util';
13import 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', () => {