Skip to content

Commit

Permalink
Add try/catch, for IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
plehoux committed Jul 6, 2012
1 parent 17ad98d commit cef1222
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ <h2>Hymne à la Beauté</h2>
</html>
<script>
window.FONTBOMB_HIDE_CONFIRMATION = true;
(function () {var s = document.createElement('script');s.setAttribute('src', 'http://fontbomb.ilex.ca/js/main.js');document.body.appendChild(s);}());
(function () {try{var s = document.createElement('script');s.setAttribute('src', 'http://fontbomb.ilex.ca/js/main.js');document.body.appendChild(s);}catch(err){alert("Your browser is not compatible, watch the video or try with Chrome.")}}());
</script>
2 changes: 1 addition & 1 deletion js/explosion.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/coffee/explosion.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class Explosion
if confirmation?
style = document.createElement('style')
style.innerHTML = """
div#fontBombConfirmation {
div#fontBombConfirmation {
position: absolute;
top: -200px;
left: 0px;
Expand Down

0 comments on commit cef1222

Please sign in to comment.