Commit 8e60e70e authored by Eriksson Monteiro's avatar Eriksson Monteiro

update millix bar and millix wallet ui

parent a34f627b
const config = {
parent_frame_id: 'tangled://millix-bar',
child_frame_id : 'chrome-untrusted://millix-ws/'
};
const config = {
parent_frame_id: '*',
child_frame_id : '*'
};
const cr = {
define(n, f) {
globalThis[n] = f();
},
addWebUIListener() {
}
};
const loadTimeData = {
getBoolean() {
return false;
}
};
chrome.send = () => {
};
const NODE_ID = undefined;
const NODE_SIGNATURE = undefined;
if (!NODE_ID || !NODE_SIGNATURE) {
throw Error('NODE_ID and NODE_SIGNATURE must be defined');
}
setTimeout(() => {
if (typeof (millix_bar) !== 'undefined') {
millix_bar.connectToWallet({
node_id : NODE_ID,
node_signature: NODE_SIGNATURE
});
millix_bar.unlockWallet();
millix_bar.refreshThemeStyles({is_dark_theme: true});
}
}, 1000);
function replace_frame_millix_api_src() {
if (typeof ($) !== 'undefined') {
$(function() {
$('#frame_millix_api').attr('src', './millix_ws.html');
});
}
else {
setTimeout(replace_frame_millix_api_src, 1000);
}
}
replace_frame_millix_api_src();
**uncomment this millix_bar.html:226<br>**
<iframe id="frame_millix_api" src="./millix_ws.html" class="hidden"
onload="millix_bar.onApiFrameReady()"></iframe>
**comment this millix_bar.html:227<br>**
<iframe id="frame_millix_api" src="chrome-untrusted://millix-ws/" class="hidden"
onload="millix_bar.onApiFrameReady()"></iframe>
****
**comment millix_ws.js:6<br>**
static PARENT_FRAME_ID = 'tangled://millix-bar';
**<br>uncomment millix_ws.js:8<br>**
static PARENT_FRAME_ID = '*';
****
**uncomment millix_bar.js:4 - millix_bar.js:36<br>**
add values to NODE_ID (millix_bar.js:18) and NODE_SIGNATURE (millix_bar.js:19)
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