1
0

Move to CEF

This commit is contained in:
Scott E. Graves
2017-03-19 03:33:04 -05:00
parent 62b3dac1e3
commit 24c6dcc442
8 changed files with 97 additions and 133 deletions

View File

@@ -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')