소스 검색

fixed location link so now page may be displayed correctly started either from folder clicking 'GQL.html' or using liveServer extension

miskson 3 년 전
부모
커밋
9189658b63
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hw15-gql-cathegory-pg/GQL_files/index.js

+ 1 - 1
hw15-gql-cathegory-pg/GQL_files/index.js

@@ -227,5 +227,5 @@ store.subscribe(() => {
 })
 
 window.onload = () => {
-    location.href = location.origin + "/GQL.html#/category/5dc49f4d5df9d670df48cc64"
+    location.href = location.href + "#/category/5dc49f4d5df9d670df48cc64"
 }