Parcourir la source

refactor: change last remaining window history mention to explicitly use window.history to avoid confusion

Kristian Vos il y a 1 an
Parent
commit
b722796eeb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      frontend/src/composables/useTabQueryHandler.ts

+ 1 - 1
frontend/src/composables/useTabQueryHandler.ts

@@ -16,7 +16,7 @@ export const useTabQueryHandler = defaultTab => {
 		tab.value = route.query.tab;
 
 		// eslint-disable-next-line no-restricted-globals
-		history.pushState(
+		window.history.pushState(
 			{},
 			null,
 			`${route.path}?${Object.keys(queries)