Set a variable when the app is quitting. 2. var isAppQuitting = false;. 3. app.on('before-quit', function (evt) {. 4. isAppQuitting = true;.
確定! 回上一頁