Skip to content

Commit 4514815

Browse files
authored
Merge pull request #117 from bbcmicrobit/polyfill
Add pollyfills for IE
2 parents e60fc58 + 7026d45 commit 4514815

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

editor.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
</head>
7070
<body>
7171
<script type="application/javascript">
72-
if (navigator.appVersion.indexOf("MSIE 10") !== -1 || navigator.appVersion.indexOf("MSIE 9") !== -1 || navigator.appVersion.indexOf("MSIE 8") !== -1 || navigator.appVersion.indexOf("MSIE 7") !== -1)
73-
{
74-
document.write('<a href="https://www.microsoft.com/en-gb/download/internet-explorer.aspx">Please upgrade to IE 11 or greater.</a>');
75-
document.execCommand('Stop');
76-
}
72+
if (navigator.appVersion.indexOf("MSIE 9") !== -1 || navigator.appVersion.indexOf("MSIE 8") !== -1 || navigator.appVersion.indexOf("MSIE 7") !== -1)
73+
{
74+
document.write('<a href="https://www.microsoft.com/en-gb/download/internet-explorer.aspx">Please upgrade to IE 10 or greater.</a>');
75+
document.execCommand('Stop');
76+
}
7777
</script>
7878
<script type="application/javascript">
7979
// VERSION INFORMATION
@@ -260,6 +260,7 @@ <h2><i class="fa fa-unlock-alt"></i> <strong>{{ title }}</strong></h2>
260260
<script src="static/js/encoding.js" type="application/javascript"></script>
261261
<script src="static/js/mustache.min.js"
262262
type="application/javascript"></script>
263+
<script src="static/js/polyfill.min.js" type="application/javascript"></script>
263264
<script src="static/js/intel-hex.browser.js" type="application/javascript"></script>
264265
<script src="blockly/blockly_compressed.js"></script>
265266
<script src="blockly/blocks_compressed.js"></script>

0 commit comments

Comments
 (0)