mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-11-01 03:46:38 -07:00
24 lines
652 B
JavaScript
24 lines
652 B
JavaScript
|
/**
|
||
|
* Initialize UI functions which depend on internal modules.
|
||
|
* Loaded after core UI functions are initialized in uicore.js.
|
||
|
*/
|
||
|
// Requirements
|
||
|
const path = require('path')
|
||
|
const ConfigManager = require(path.join(__dirname, 'assets', 'js', 'configmanager.js'))
|
||
|
|
||
|
// Synchronous Listener
|
||
|
document.addEventListener('readystatechange', function(){
|
||
|
|
||
|
if (document.readyState === 'complete'){
|
||
|
if(ConfigManager.isFirstLaunch()){
|
||
|
$('#welcomeContainer').fadeIn(500)
|
||
|
} else {
|
||
|
$('#landingContainer').fadeIn(500)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*if (document.readyState === 'interactive'){
|
||
|
|
||
|
}*/
|
||
|
}, false)
|