Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
301 views
in Technique[技术] by (71.8m points)

javascript - 电子中app.ready()之前调用了哪种方法(Which method called before app.ready() in electron)

const { app } = require('electron')

我想在app.disableHardwareAcceleration()之前调用app.disableHardwareAcceleration()

  ask by shivlal kumavat translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

ElectronJS has event "will-finish-launching".

(ElectronJS具有事件“将完成启动”。)

That will be invoked when the application has finished basic startup.

(当应用程序完成基本启动后,将调用该函数。)

app.on('will-finish-launching', () => { ... })

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...