From e9b602cf60562b6baff5a0ddfddc434818b93e65 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 13 May 2013 11:00:16 -0500 Subject: Checks for timing in performance before using it. --- lib/cobalt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/cobalt.js b/lib/cobalt.js index 9554a04..981aab2 100644 --- a/lib/cobalt.js +++ b/lib/cobalt.js @@ -27,7 +27,7 @@ } Cobalt.now = function () { - if (typeof performance !== 'undefined') { + if (typeof performance !== 'undefined' && performance.timing) { return performance.timing.navigationStart + performance.now(); } -- cgit