Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TIT8 committed Aug 25, 2024
1 parent 908fcc8 commit a840393
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 25 deletions.
11 changes: 7 additions & 4 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@
<meta name="referrer" content="no-referrer-when-downgrade" />

<script>
if(!!window.performance && window.performance.navigation.type == 2)
{
window.location.reload(true);
}
window.addEventListener("pageshow", () => {
var perfEntries = performance.getEntriesByType("navigation");
for (var i = 0; i < perfEntries.length; i++) {
if(perfEntries[i].type==="back_forward"){location.reload(true);}
}
});

if(localStorage.getItem('theme') != null){
if (localStorage.getItem('theme') === 'dark') {
document.documentElement.toggleAttribute('data-dark-mode');
Expand Down
11 changes: 7 additions & 4 deletions public/contact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@
<meta name="referrer" content="no-referrer-when-downgrade" />

<script>
if(!!window.performance && window.performance.navigation.type == 2)
{
window.location.reload(true);
}
window.addEventListener("pageshow", () => {
var perfEntries = performance.getEntriesByType("navigation");
for (var i = 0; i < perfEntries.length; i++) {
if(perfEntries[i].type==="back_forward"){location.reload(true);}
}
});

if(localStorage.getItem('theme') != null){
if (localStorage.getItem('theme') === 'dark') {
document.documentElement.toggleAttribute('data-dark-mode');
Expand Down
11 changes: 7 additions & 4 deletions public/contribute/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@
<meta name="referrer" content="no-referrer-when-downgrade" />

<script>
if(!!window.performance && window.performance.navigation.type == 2)
{
window.location.reload(true);
}
window.addEventListener("pageshow", () => {
var perfEntries = performance.getEntriesByType("navigation");
for (var i = 0; i < perfEntries.length; i++) {
if(perfEntries[i].type==="back_forward"){location.reload(true);}
}
});

if(localStorage.getItem('theme') != null){
if (localStorage.getItem('theme') === 'dark') {
document.documentElement.toggleAttribute('data-dark-mode');
Expand Down
11 changes: 7 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@
<meta name="referrer" content="no-referrer-when-downgrade" />

<script>
if(!!window.performance && window.performance.navigation.type == 2)
{
window.location.reload(true);
}
window.addEventListener("pageshow", () => {
var perfEntries = performance.getEntriesByType("navigation");
for (var i = 0; i < perfEntries.length; i++) {
if(perfEntries[i].type==="back_forward"){location.reload(true);}
}
});

if(localStorage.getItem('theme') != null){
if (localStorage.getItem('theme') === 'dark') {
document.documentElement.toggleAttribute('data-dark-mode');
Expand Down
11 changes: 7 additions & 4 deletions public/licenses/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@
<meta name="referrer" content="no-referrer-when-downgrade" />

<script>
if(!!window.performance && window.performance.navigation.type == 2)
{
window.location.reload(true);
}
window.addEventListener("pageshow", () => {
var perfEntries = performance.getEntriesByType("navigation");
for (var i = 0; i < perfEntries.length; i++) {
if(perfEntries[i].type==="back_forward"){location.reload(true);}
}
});

if(localStorage.getItem('theme') != null){
if (localStorage.getItem('theme') === 'dark') {
document.documentElement.toggleAttribute('data-dark-mode');
Expand Down
11 changes: 7 additions & 4 deletions public/report-a-copyright-violation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@
<meta name="referrer" content="no-referrer-when-downgrade" />

<script>
if(!!window.performance && window.performance.navigation.type == 2)
{
window.location.reload(true);
}
window.addEventListener("pageshow", () => {
var perfEntries = performance.getEntriesByType("navigation");
for (var i = 0; i < perfEntries.length; i++) {
if(perfEntries[i].type==="back_forward"){location.reload(true);}
}
});

if(localStorage.getItem('theme') != null){
if (localStorage.getItem('theme') === 'dark') {
document.documentElement.toggleAttribute('data-dark-mode');
Expand Down
2 changes: 1 addition & 1 deletion themes/tito-bearblog

0 comments on commit a840393

Please sign in to comment.