Commit af785a09 authored by eriksson monteiro's avatar eriksson monteiro

fix wallet loading

parent 9e8e2e64
...@@ -2,7 +2,7 @@ class _API { ...@@ -2,7 +2,7 @@ class _API {
static HOST = 'https://localhost:5500/api'; static HOST = 'https://localhost:5500/api';
constructor() { constructor() {
this.nodeID = undefined; this.nodeID = undefined;
this.nodeSignature = undefined; this.nodeSignature = undefined;
} }
...@@ -178,7 +178,7 @@ window.addEventListener('message', ({ data }) => { ...@@ -178,7 +178,7 @@ window.addEventListener('message', ({ data }) => {
addressKeyIdentifier = data.wallet.address_key_identifier; addressKeyIdentifier = data.wallet.address_key_identifier;
} }
window.parent.postMessage({ type: 'millix_session', data }, 'tangled://millix-bar') window.parent.postMessage({ type: 'millix_session', data }, 'tangled://millix-bar')
}); }).catch(_ => setTimeout(() => window.postMessage({ type: 'get_session', data }), 1000));
break; break;
case 'new_session': case 'new_session':
API.newSession(data.password) API.newSession(data.password)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment