We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wrap
1 parent 77fa92d commit 0f5b5bbCopy full SHA for 0f5b5bb
src/index.js
@@ -76,8 +76,9 @@ export default function Navaid(base, on404) {
76
}
77
78
function wrap(type, fn) {
79
- type += 'State';
80
- fn = history[type];
+ if (history[type]) return;
+ history[type] = type;
81
+ fn = history[type += 'State'];
82
history[type] = function (uri) {
83
var ev = new Event(type.toLowerCase());
84
ev.uri = uri;
0 commit comments