mirror of
https://github.com/transmission/transmission
synced 2025-02-15 02:44:42 +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
|
// Initialise the main Transmission controller
|
||||||
transmission = new Transmission();
|
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
|
// IE specific fixes here
|
||||||
if ($.browser.msie) {
|
if ($.browser.msie) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue