Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Do-Not-Dusturb authored Nov 9, 2024
1 parent 9d0ca32 commit 9402e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
window.addEventListener("keydown", function (e) {
if (e.key === "q" || e.key === "Q") {
// Change the favicon
// Change the favicon so uhh ya
let link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/png';
link.rel = 'icon';
link.href = 'https://raw.githubusercontent.com/Nintendoboi222/nintendoboi222.github.io/main/gmail-logo.png';
link.href = 'https://raw.githubusercontent.com/Nintendoboi222/nintendoboi222.github.io/main/gmail-logo.png?' + new Date().getTime();
document.getElementsByTagName('head')[0].appendChild(link);
}
});
Expand Down

0 comments on commit 9402e92

Please sign in to comment.