Sfoglia il codice sorgente

fix: helper functions

parent
commit
6274ef6b10
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      resources/js/utils/helpers.js

+ 1
- 1
resources/js/utils/helpers.js Vedi File

@@ -27,7 +27,7 @@ export function removeParams(...params) {
27 27
 
28 28
   params.forEach((value) => urlParams.delete(value))
29 29
 
30
-  window.history.replaceState({}, '', `${location.pathname}?${urlParams}`)
30
+  history.replaceState({}, '', `${location.pathname}?${urlParams}`)
31 31
 }
32 32
 
33 33
 export class FormValidationError extends Error {