Skip to content

Commit

Permalink
Use the now() utility instead of Date.now()
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Aug 18, 2018
1 parent 79aad71 commit 9f732db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/idle-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {cIC, isSafari, queueMicrotask, rIC} from './utilities';
import {cIC, isSafari, now, queueMicrotask, rIC} from './utilities';

/**
* A class wraps a queue of requestIdleCallback functions for two reasons:
Expand Down Expand Up @@ -60,7 +60,7 @@ export default class IdleQueue {
if (typeof tasks === 'function') tasks = [tasks];

const state = {
time: Date.now(),
time: now(),
visibilityState: document.visibilityState,
};

Expand Down

0 comments on commit 9f732db

Please sign in to comment.