Skip to content

Commit

Permalink
Merge pull request #217 from BizziQuest/153-display-notice-to-users-o…
Browse files Browse the repository at this point in the history
…n-older-browsers

show alert to browsers that can't handle optional chaining.
  • Loading branch information
skamansam authored Sep 22, 2023
2 parents 11e6403 + eaed129 commit 487fb42
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 487fb42

Please sign in to comment.