mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-16 21:48:10 -07:00
website_next: part 9
This commit is contained in:
@@ -32,9 +32,10 @@ function getPage(pathname) {
|
||||
|
||||
/** @param {HTMLElement} page */
|
||||
function activatePage(page) {
|
||||
if (currentPage) {
|
||||
if (currentPage && currentPage !== page) {
|
||||
currentPage.hidden = true;
|
||||
currentPage.inert = true;
|
||||
currentPage.dispatchEvent(new Event("pageinactive"));
|
||||
}
|
||||
|
||||
page.hidden = false;
|
||||
|
||||
Reference in New Issue
Block a user