Add base files from AME
This commit is contained in:
parent
e8f3881513
commit
e3c3bded3a
129 changed files with 19056 additions and 0 deletions
30
resources/functions/splash.js
Normal file
30
resources/functions/splash.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
const {
|
||||
BrowserWindow
|
||||
} = require('electron');
|
||||
|
||||
const SplashScreen = {
|
||||
win: null,
|
||||
show: function () {
|
||||
this.win = new BrowserWindow({
|
||||
width: 300,
|
||||
height: 300,
|
||||
resizable: false,
|
||||
show: true,
|
||||
center: true,
|
||||
transparent: true,
|
||||
frame: false,
|
||||
alwaysOnTop: true,
|
||||
// skipTaskbar: true,
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
this.win.show()
|
||||
this.win.loadFile('./resources/splash/index.html')
|
||||
this.win.on("closed", () => {
|
||||
this.win = null
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SplashScreen
|
Loading…
Add table
Add a link
Reference in a new issue