mirror of
https://github.com/transmission/transmission
synced 2025-02-14 18:34:43 +00:00
add fallback implementation of Date.now for IE8
This commit is contained in:
parent
f569bae99c
commit
f1fc3584f4
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue