Call history.replaceState when clicking the fullscreen button.
This commit is contained in:
parent
7799827931
commit
9cf2103d52
1 changed files with 2 additions and 0 deletions
|
@ -1114,6 +1114,7 @@ function fullscreen_on()
|
||||||
element.classList.add("hidden");
|
element.classList.add("hidden");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
history.replaceState(null, "", `${window.location.pathname}?justthesplash`);
|
||||||
document.body.classList.add("justthesplash");
|
document.body.classList.add("justthesplash");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1124,6 +1125,7 @@ function fullscreen_off()
|
||||||
{
|
{
|
||||||
element.classList.remove("hidden");
|
element.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
|
history.replaceState(null, "", `${window.location.pathname}`);
|
||||||
document.body.classList.remove("justthesplash");
|
document.body.classList.remove("justthesplash");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue