Fix cowebsite swap
This commit is contained in:
@@ -159,9 +159,17 @@ class CoWebsiteManager {
|
|||||||
});
|
});
|
||||||
|
|
||||||
buttonSwipe.addEventListener("click", () => {
|
buttonSwipe.addEventListener("click", () => {
|
||||||
|
const mainCoWebsite = this.getMainCoWebsite();
|
||||||
const highlightedEmbed = get(highlightedEmbedScreen);
|
const highlightedEmbed = get(highlightedEmbedScreen);
|
||||||
if (highlightedEmbed?.type === "cowebsite") {
|
if (highlightedEmbed?.type === "cowebsite") {
|
||||||
this.goToMain(highlightedEmbed.embed);
|
this.goToMain(highlightedEmbed.embed);
|
||||||
|
|
||||||
|
if (mainCoWebsite) {
|
||||||
|
highlightedEmbedScreen.toggleHighlight({
|
||||||
|
type: "cowebsite",
|
||||||
|
embed: mainCoWebsite,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user