mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 16:10:02 -04:00
fix history client api
This commit is contained in:
parent
1b55a1672a
commit
780dc005f3
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import { decodeUrl } from "./shared";
|
|||
|
||||
window.history.pushState = new Proxy(window.history.pushState, {
|
||||
apply(target, thisArg, argArray) {
|
||||
argArray[3] = decodeUrl(argArray[3]);
|
||||
argArray[2] = decodeUrl(argArray[2]);
|
||||
|
||||
return Reflect.apply(target, thisArg, argArray);
|
||||
},
|
||||
|
@ -10,7 +10,7 @@ window.history.pushState = new Proxy(window.history.pushState, {
|
|||
|
||||
window.history.replaceState = new Proxy(window.history.replaceState, {
|
||||
apply(target, thisArg, argArray) {
|
||||
argArray[3] = decodeUrl(argArray[3]);
|
||||
argArray[2] = decodeUrl(argArray[2]);
|
||||
|
||||
return Reflect.apply(target, thisArg, argArray);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue