We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d2292 commit 357b8c3Copy full SHA for 357b8c3
js/jquery.fileupload.js
@@ -215,7 +215,7 @@
215
],
216
217
_BitrateTimer: function () {
218
- this.timestamp = (new Date()).getTime();
+ this.timestamp = ((Date.now) ? Date.now() : (new Date()).getTime());
219
this.loaded = 0;
220
this.bitrate = 0;
221
this.getBitrate = function (now, loaded, interval) {
@@ -289,7 +289,7 @@
289
290
_onProgress: function (e, data) {
291
if (e.lengthComputable) {
292
- var now = (new Date()).getTime(),
+ var now = ((Date.now) ? Date.now() : (new Date()).getTime()),
293
loaded;
294
if (data._time && data.progressInterval &&
295
(now - data._time < data.progressInterval) &&
0 commit comments