Skip to content

Commit

Permalink
Show upgrade warning if using a really old browser (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra authored Jun 18, 2020
1 parent 95dc359 commit e4a9acc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
<script id="sentry-snippet">location.host.indexOf('127.0.0.1') == -1 && Sentry.init({ dsn: '{{sentry_dsn}}' });</script>
{% endif %}
</head>

<body>
<script>
if (typeof Object.entries === 'undefined') {
let div = document.createElement("div");
div.style.color='#fef6f6'; div.style.background='#920c0c'; div.style.padding='5px 10px';
div.innerHTML = "You are using a really old browser. Please upgrade to fully enjoy PostHog!"
document.body.prepend(div);
}
</script>
<div id="root"></div>
</body>
</html>

0 comments on commit e4a9acc

Please sign in to comment.