Browse Source

Merge remote-tracking branch 'Main/q-apps' into justin/q-apps

pull/137/head
Justin Ferrari 2 years ago
parent
commit
0281f14d15
  1. 18
      qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js

18
qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js

@ -179,22 +179,6 @@ class WebBrowser extends LitElement {
}`; }`;
}; };
const authorizeAndRender = () => {
parentEpml
.request('apiCall', {
url: `/render/authorize/${this.name
}?apiKey=${this.getApiKey()}`,
method: 'POST',
})
.then((res) => {
if (res.error) {
// Authorization problem - API key incorrect?
} else {
render();
}
});
};
let configLoaded = false; let configLoaded = false;
parentEpml.ready().then(() => { parentEpml.ready().then(() => {
@ -214,7 +198,7 @@ class WebBrowser extends LitElement {
parentEpml.subscribe('config', (c) => { parentEpml.subscribe('config', (c) => {
this.config = JSON.parse(c); this.config = JSON.parse(c);
if (!configLoaded) { if (!configLoaded) {
authorizeAndRender(); render();
setTimeout(getFollowedNames, 1); setTimeout(getFollowedNames, 1);
setTimeout(getBlockedNames, 1); setTimeout(getBlockedNames, 1);
configLoaded = true; configLoaded = true;

Loading…
Cancel
Save