mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
add fallback implementation of Date.now for IE8
This commit is contained in:
@@ -40,6 +40,13 @@ $(document).ready(function() {
|
||||
// Initialise the main Transmission controller
|
||||
transmission = new Transmission();
|
||||
|
||||
// IE8 and below don’t support ES5 Date.now()
|
||||
if (!Date.now) {
|
||||
Date.now = function() {
|
||||
return +new Date();
|
||||
};
|
||||
}
|
||||
|
||||
// IE specific fixes here
|
||||
if ($.browser.msie) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user