message: Change method to use getFocusedWindow instead of fromWebContents
diff: @@ -515,7 +515,10 @@ function doCreateMainWindow(initialUrl, initialBounds) {
  if (!userPermission) {
  let fullMessage = `Your administrator has disabled ${message}. Please contact your admin for help.`;
  - electron.dialog.showMessageBox(BrowserWindow.fromWebContents(webContents), {type: 'error', title: 'Permission Denied!', message: fullMessage});
  + const browserWindow = BrowserWindow.getFocusedWindow();
  + if (browserWindow && !browserWindow.isDestroyed()) {
  + electron.dialog.showMessageBox(browserWindow, {type: 'error', title: 'Permission Denied!', message: fullMessage});
  + }
  }
  return cb(userPermission);
  