瀏覽代碼

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

Kristian Vos 1 年之前
父節點
當前提交
b722796eeb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)