Skip to content

Commit

Permalink
show alert to browsers that can't handle optional chaining.
Browse files Browse the repository at this point in the history
Fixes #132
  • Loading branch information
skamansam committed Sep 22, 2023
1 parent 11e6403 commit eaed129
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WMG3PNX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script>
try {
const obj={test: 1};
const allowChainingTest = obj?.test;
} catch (e) {
alert('Your browser is not supported. Please update your browser to the latest version.');
}
</script>
<noscript>
<strong>We're sorry but QuestLists doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
Expand Down

0 comments on commit eaed129

Please sign in to comment.