Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
v4for authored Dec 5, 2024
1 parent 2a52b21 commit d5689a3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
}
});



// Manage tab name and icon
var savedTabName = localStorage.getItem('tabName');
var savedTabImage = localStorage.getItem('tabImage');
if (savedTabName) document.title = savedTabName;
if (savedTabImage) {
var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = savedTabImage;
document.head.appendChild(link);
}

// Redirect if necessary
if (window.self === window.top && localStorage.getItem('blank2') === 'true') {
redirectToWebsite();
}
});

function openIframe(event, title, src) {
event.preventDefault();
var win = window.open('', title, 'height=649,width=730,screenX=400,screenY=350');
Expand Down

0 comments on commit d5689a3

Please sign in to comment.