Skip to content

Commit

Permalink
Add comment and remove .local condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 6, 2024
1 parent 7d1f7be commit e96344d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<!-- Google Analytics -->
<script>
// Logic derived from https://stackoverflow.com/a/61839170
const local = (function (hostname=window.location.hostname) {
return (
(['localhost', '127.0.0.1', '', '::1'].includes(hostname))
|| (hostname.startsWith('192.168.'))
|| (hostname.startsWith('10.'))
|| (hostname.endsWith('.local'))
)
})();
if (!local) {
Expand Down

0 comments on commit e96344d

Please sign in to comment.