refresh HTML attributes on new page loads

This commit is contained in:
Lawrence Hook
2023-06-16 13:46:16 -04:00
parent 8726af26f7
commit 2d7ad7cd27
+3
View File
@@ -562,6 +562,9 @@ function handleNewPage() {
// Mark whether or not we're on a video page
HTML.setAttribute('on_video', onVideo);
// Refresh HTML attributes
Object.entries(cache).forEach(([key, value]) => HTML.setAttribute(key, value));
// Homepage redirects
if (
on &&