Explorar o código

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

Kristian Vos hai 1 ano
pai
achega
b722796eeb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)