diff options
author | Ben Firshman <ben@firshman.co.uk> | 2010-09-26 14:35:43 +0100 |
---|---|---|
committer | Ben Firshman <ben@firshman.co.uk> | 2010-09-26 14:35:43 +0100 |
commit | a51193129179cf3011543c881c53caf442f87580 (patch) | |
tree | 7a40f7b7375d0fb60de960f8b7695258f65b9cc2 /source/utils.js | |
parent | 6e523b9d6da5f9842c788487b62390d89c9ff52d (diff) | |
download | jsnes-a51193129179cf3011543c881c53caf442f87580.zip jsnes-a51193129179cf3011543c881c53caf442f87580.tar.gz jsnes-a51193129179cf3011543c881c53caf442f87580.tar.bz2 |
Holy crap. With a little help from VBScript, now working on IE9
Diffstat (limited to 'source/utils.js')
-rw-r--r-- | source/utils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/utils.js b/source/utils.js index 842e328..58ee0b1 100644 --- a/source/utils.js +++ b/source/utils.js @@ -43,6 +43,10 @@ JSNES.Utils = { state[obj.JSON_PROPERTIES[i]] = obj[obj.JSON_PROPERTIES[i]]; } return state; + }, + + isIE: function() { + return (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)); } }; |