Skip to content

Commit 5d0cd2a

Browse files
committed
Use History
1 parent 457d944 commit 5d0cd2a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/locations/RefreshLocation.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var HistoryLocation = require('./HistoryLocation');
2+
var History = require('../utils/History');
23
var Path = require('../utils/Path');
34

45
/**
@@ -16,11 +17,7 @@ var RefreshLocation = {
1617
window.location.replace(Path.encode(path));
1718
},
1819

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-
},
20+
pop: History.back,
2421

2522
getCurrentPath: HistoryLocation.getCurrentPath,
2623

0 commit comments

Comments
 (0)