mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-19 06:58:11 -07:00
website_next: part 9
This commit is contained in:
@@ -14,11 +14,8 @@ export function createExplorePage() {
|
||||
const syncChain = () => chain.setActive(!main.hidden && !document.hidden);
|
||||
|
||||
main.addEventListener("pageactive", syncChain);
|
||||
main.addEventListener("pageinactive", syncChain);
|
||||
document.addEventListener("visibilitychange", syncChain);
|
||||
new MutationObserver(syncChain).observe(main, {
|
||||
attributes: true,
|
||||
attributeFilter: ["hidden"],
|
||||
});
|
||||
|
||||
return main;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user