Skip to content

Commit

Permalink
Cleaned up stop code. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Rudd committed May 10, 2018
1 parent 551a4c0 commit 4ad5994
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions view/browser-detection.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
if (!validBrowser) {
document.body.style.backgroundColor = '#d9d9d9';
document.body.innerHTML = '<div style="margin:20px auto; font-family: sans-serif; width:400px">This browser is not supported.<br />Please use the Chrome browser to access this app.</div>';
try {window.stop()} catch (e) {}
try {document.execCommand('Stop')} catch (e) {}
try {window.stop()} catch (e) {document.execCommand('Stop')}
}
})(window);

0 comments on commit 4ad5994

Please sign in to comment.