diff --git a/src/client/history.ts b/src/client/history.ts index 1a7c0cd..cd16dc7 100644 --- a/src/client/history.ts +++ b/src/client/history.ts @@ -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); },