Parcourir la source

fix: helper functions

Muhammad Iqbal Afandi il y a 4 ans
Parent
révision
6274ef6b10
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      resources/js/utils/helpers.js

+ 1
- 1
resources/js/utils/helpers.js Voir le fichier

27
 
27
 
28
   params.forEach((value) => urlParams.delete(value))
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
 export class FormValidationError extends Error {
33
 export class FormValidationError extends Error {