sorry for doing this.
This commit is contained in:
parent
5fc82a8bc7
commit
b3db294485
106 changed files with 86 additions and 259 deletions
30
oldshit/resources/functions/splash.js
Normal file
30
oldshit/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