Skip to content

Commit 7704c93

Browse files
committed
πŸ±β€πŸ’» Support hacker cat on Win64
1 parent ffa9d73 commit 7704c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

β€Žjs/oftn/site.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ga('send', 'pageview');
1414

1515
(function() { // randomized per-tab emoji favicons
1616
var favicon_emoji = "πŸ‘¨β€πŸ”¬ πŸ‘©β€πŸ”¬ πŸ‘¨β€πŸ’» πŸ‘©β€πŸ’» πŸ‘¨β€πŸš€ πŸ‘©β€πŸš€ 🀯 πŸ€– ⚑ 🌧️ πŸš€ πŸ’» 🧠 πŸ‘» πŸ“œ β˜„οΈ πŸ›Έ 🌌 🌠 πŸ›°οΈ ✨ πŸ”₯".split(" ");
17-
if (navigator.platform === "Win32") { // only Microsoft implements hacker cat
17+
if (/^Win\d+$/.test(navigator.platform)) { // only Microsoft implements hacker cat
1818
favicon_emoji.push("πŸ±β€πŸ’»");
1919
}
2020
var favicon = sessionStorage.favicon = sessionStorage.favicon || favicon_emoji[crypto.getRandomValues(new Uint8Array(1))[0] % favicon_emoji.length];

0 commit comments

Comments
Β (0)