Kaynağa Gözat

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

miskson 3 yıl önce
ebeveyn
işleme
9189658b63
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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"
 }