mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-04-24 03:47:53 +00:00
Merge remote-tracking branch 'Main/q-apps' into justin/q-apps
This commit is contained in:
commit
0281f14d15
@ -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…
x
Reference in New Issue
Block a user