fix default_app.js calling no-longer-existent API
This commit is contained in:
parent
647322e299
commit
98829aa916
1 changed files with 1 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
const { app, BrowserWindow, systemPreferences } = require('electron')
|
const { app, BrowserWindow } = require('electron')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
let mainWindow = null
|
let mainWindow = null
|
||||||
|
@ -11,10 +11,6 @@ app.on('window-all-closed', () => {
|
||||||
exports.load = async (appUrl) => {
|
exports.load = async (appUrl) => {
|
||||||
await app.whenReady()
|
await app.whenReady()
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
|
||||||
systemPreferences.startAppLevelAppearanceTrackingOS()
|
|
||||||
}
|
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
width: 900,
|
width: 900,
|
||||||
height: 600,
|
height: 600,
|
||||||
|
|
Loading…
Reference in a new issue