fix a bug where the innerHTML did not reset on reload.
This commit is contained in:
parent
6a6d4f9c3f
commit
bd6ad4a0aa
1 changed files with 4 additions and 0 deletions
|
@ -188,7 +188,9 @@ async function PosterContainerUpdate(Direction) {
|
||||||
switch(countergroup) {
|
switch(countergroup) {
|
||||||
// Mastodon
|
// Mastodon
|
||||||
case 0:
|
case 0:
|
||||||
|
// Begin by having the website we are using get pushed to the expanded view array and clean out the HTML.
|
||||||
WebsiteAPIType.push("Mastodon");
|
WebsiteAPIType.push("Mastodon");
|
||||||
|
i.getElementsByClassName("PostContent")[0].innerHTML = "";
|
||||||
if (MastodonLoadedFeed[CurrentThing + counter] == undefined) {
|
if (MastodonLoadedFeed[CurrentThing + counter] == undefined) {
|
||||||
let TempFeed = await MastodonAPI.GetTimeline(MastodonLoadedFeed[CurrentThing + counter - 1].id);
|
let TempFeed = await MastodonAPI.GetTimeline(MastodonLoadedFeed[CurrentThing + counter - 1].id);
|
||||||
MastodonLoadedFeed = MastodonLoadedFeed.concat(TempFeed);
|
MastodonLoadedFeed = MastodonLoadedFeed.concat(TempFeed);
|
||||||
|
@ -214,7 +216,9 @@ async function PosterContainerUpdate(Direction) {
|
||||||
break;
|
break;
|
||||||
// Bsky
|
// Bsky
|
||||||
case 1:
|
case 1:
|
||||||
|
// Begin by having the website we are using get pushed to the expanded view array and clean out the HTML.
|
||||||
WebsiteAPIType.push("Bluesky");
|
WebsiteAPIType.push("Bluesky");
|
||||||
|
i.getElementsByClassName("PostContent")[0].innerHTML = "";
|
||||||
if (BlueskyLoadedFeed[CurrentThing + counter] == undefined) {
|
if (BlueskyLoadedFeed[CurrentThing + counter] == undefined) {
|
||||||
let TempFeed = await BlueskyAPI.GetTimeline(BlueskyLoadedFeed[CurrentThing + counter - 1].post.indexedAt).then((response) => response.feed)
|
let TempFeed = await BlueskyAPI.GetTimeline(BlueskyLoadedFeed[CurrentThing + counter - 1].post.indexedAt).then((response) => response.feed)
|
||||||
BlueskyLoadedFeed = BlueskyLoadedFeed.concat(TempFeed);
|
BlueskyLoadedFeed = BlueskyLoadedFeed.concat(TempFeed);
|
||||||
|
|
Loading…
Add table
Reference in a new issue