app/assets/javascripts/browser.js in speed_gun-0.0.2 vs app/assets/javascripts/browser.js in speed_gun-0.0.3

- old
+ new

@@ -64,10 +64,10 @@ speedGun.send(queue[i]) } } var loadedInterval = setInterval(function() { - if (performance.timing.loadEventEnd != 0) { + if (performance && performance.timing && performance.timing.loadEventEnd != 0) { clearInterval(loadedInterval); speedGun.id = $('#speed_gun').data('speed-gun-id'); speedGun.endpoint = $('#speed_gun').data('speed-gun-endpoint') + "/" + speedGun.id; speedGun.activated = true;