summaryrefslogtreecommitdiffstats
path: root/source/utils.js
diff options
context:
space:
mode:
authorBen Firshman <ben@firshman.co.uk>2010-09-26 14:35:43 +0100
committerBen Firshman <ben@firshman.co.uk>2010-09-26 14:35:43 +0100
commita51193129179cf3011543c881c53caf442f87580 (patch)
tree7a40f7b7375d0fb60de960f8b7695258f65b9cc2 /source/utils.js
parent6e523b9d6da5f9842c788487b62390d89c9ff52d (diff)
downloadjsnes-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.js4
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));
}
};