ransei
2 months ago
aaaaaannnnnd its done :D if (['localhost', '127.0.0.1', '[::1]', '::1'].includes(hostname)) { return; }
ransei
2 months ago
*sharing same pain :D I just made it to return from function when localhost detected, never thought host detection is possible in js :D
ransei
2 months ago
yup, it worked I'm checking hostname constant which is actually: const hostname = window.location.hostname;
neppermint
2 months ago
Oh lol, I didn't know about IPv6 notation, so my head defaulted to Python slicing. I am more powerful now.
so cool ransei!
ghostii thaaanks and thank you for playing! <3 I'm planing to upgrade it gradually in next couple of days/weeks :D Maybe add some kind of pet like flipper dolphin or something :D