Move to CEF
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
})();
|
||||
|
||||
function setMainWindow(name) {
|
||||
console.log('Setting main window: ' + name);
|
||||
const elem = document.getElementById(name);
|
||||
const mainWindow = document.getElementById('main_window');
|
||||
if (mainWindow.childElementCount === 1) {
|
||||
@@ -31,7 +32,8 @@
|
||||
mainWindow.appendChild(elem);
|
||||
}
|
||||
|
||||
document.addEventListener('load', ()=> {
|
||||
window.addEventListener('load', ()=> {
|
||||
console.log('Main window load');
|
||||
if (UiState.isWalletConfigured()) {
|
||||
if (UiState.isWalletLocked()) {
|
||||
setMainWindow('unlock_window')
|
||||
|
Reference in New Issue
Block a user