browser-dead
Version:
Identify old and unsupported browsers simple easy way
26 lines (25 loc) • 829 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>Promise (<=IE11) - Browser Dead Example</title>
<link rel="stylesheet" href="../dist/css/browser-dead.min.css" media="screen" title="">
</head>
<body>
<div id="browser-dead" class="browser-dead">
<div class="title">Unsupported Browser</div>
<p>Please update your browser to access our platform</p>
</div>
<div>
This is an example of using browser-dead to detect browsers <=IE11 which do not support Promise.
If you see this, the browser you're usiing supports Promise.
</div>
<script type="text/javascript" src="../dist/browser-dead.min.js">
</script>
<script type="text/javascript">
browserDead({
supportBreakpoint: 'promise' // ie11 vs edge
})
</script>
</body>
</html>