Skip to content

Commit

Permalink
Fix empty document.referrer property.
Browse files Browse the repository at this point in the history
This fixes assaf#908, and fixes assaf#932.
Originally solved by YoussefKababe, who never PR...
  • Loading branch information
estevanmaito committed Jan 23, 2016
1 parent 3b944ab commit 5584faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class History {
name: name,
url: url,
parent: parent,
referrer: this.current && this.current.window.document.referrer
referrer: this.current.url || this.current.window.document.referrer
};
const document = loadDocument(args);
this.addEntry(document.defaultView, url);
Expand Down

0 comments on commit 5584faa

Please sign in to comment.