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.
1 parent 457d944 commit 5d0cd2aCopy full SHA for 5d0cd2a
modules/locations/RefreshLocation.js
@@ -1,4 +1,5 @@
1
var HistoryLocation = require('./HistoryLocation');
2
+var History = require('../utils/History');
3
var Path = require('../utils/Path');
4
5
/**
@@ -16,11 +17,7 @@ var RefreshLocation = {
16
17
window.location.replace(Path.encode(path));
18
},
19
- pop: function () {
20
- // History will always have length 1 when using full
21
- // page refreshes, so use window.history directly.
22
- window.history.back();
23
- },
+ pop: History.back,
24
25
getCurrentPath: HistoryLocation.getCurrentPath,
26
0 commit comments