Skip to content

Navigation Menu

Sign in
Sign up

Commit b05ff2c

Browse files
小调整
1 parent 33263fa commit b05ff2c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎browser/proxy/src/fakeloc.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ function setup(obj, fakeLoc) {
2424

2525
/**
2626
* @param {Window} win
27-
* @param {Hook} hook
2827
*/
29-
export function init(win,hook) {
28+
export function init(win) {
3029
let loc = win.location
3130

3231
// TODO: iframe 场合下存在问题
@@ -122,8 +121,8 @@ export function init(win, hook) {
122121
loc.hash = val
123122
},
124123

125-
reload(...args) {
126-
loc.reload(...args)
124+
reload() {
125+
loc.reload(...arguments)
127126
},
128127

129128
replace(val) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /