Comments (4)
@do-web , I just ran the 2 examples in this project against electron v3.0.0 successfully. If you are running into an issue, please provide details on what's wrong and how to reproduce.
from electron-splashscreen.
With the fallowing config the splashscreen apears but not hide, and the main window do not show.
const config = {
windowOpts: {
width: windowState.width,
height: windowState.height,
x: windowState.x,
y: windowState.y,
minWidth: 800,
minHeight: 720,
maximized: true,
show: false,
icon:
process.platform === 'win32'
? `${__dirname}/icons/icon.ico`
: process.platform === 'darwin' ? `${__dirname}/icons/icon.icns` : `${__dirname}/icons/icon.png`,
titleBarStyle: process.platform === 'darwin' ? 'hidden' : null,
frame: process.platform !== 'darwin',
webPreferences: {
webSecurity: false,
devTools: isDevelopment
}
},
delay: 0,
templateUrl: path.join(__dirname, 'splash.html'),
minVisible: 4000,
splashScreenOpts: {
width: 600,
height: 400,
backgroundColor: "white",
},
};
With electron 2.0 this works fine.
from electron-splashscreen.
Modifying the project's example to use your options and running on macOS, I still don't run into any issues. The splash-screen listens for your main BrowserWindow
's "did-finish-load" event before hiding. Of course, your code must still call loadURL
on the main window that is returned from initSplashScreen
.
Does your main window load if you remove the call to electron-splashscreen
? If not, then the issue is not with electron-splashscreen
. Also, it appears that maximized
is not a valid property in electron v3.0.0, maybe you meant maximizable
.
from electron-splashscreen.
Closing due to inactivity. If you have more information, you can re-open.
from electron-splashscreen.
Related Issues (17)
- Transparent images. HOT 10
- README needs update HOT 1
- Transparent Option Not Working HOT 1
- npm Images not loading HOT 1
- error in electron packaging HOT 1
- Can I add some animation(such as fade-in, fade-out) to splash? HOT 4
- `Error: Object has been destroyed` HOT 6
- Document API HOT 1
- Splash screen won't close itself automatically. HOT 2
- Transparant Splash Screen HOT 2
- Javascript Error on early process termination HOT 7
- JavaScript implementation HOT 2
- Support more dynamic splashscreen
- Add ci + ci-build badge
- 1.0.0 - Release HOT 2
- Project Icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-splashscreen.