Skip to content

Commit

Permalink
fix: fix a situation when navigationStart is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonslyvia committed Aug 31, 2018
1 parent 84f1b3e commit 14a8fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

var getEntry = function() {
var entry = win.performance.timing;
var timeOrigin = entry.navigationStart;
var timeOrigin = entry.navigationStart || entry.redirectStart || entry.fetchStart;
var finalEntry = {
entryType: 'navigation',
initiatorType: 'navigation',
Expand Down

0 comments on commit 14a8fd5

Please sign in to comment.