Kaynağa Gözat

Merge branch 'master' into liua

* master:
  update config.js
la 1 yıl önce
ebeveyn
işleme
5f230dc27e
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      public/config.js

+ 2 - 2
public/config.js

@@ -37,9 +37,9 @@ const production = {
 }
 
 function isWhich() {
-  if (window.location.href.startsWith(development.web_pc)) {
+  if (development.web_pc.includes(window.location.host)) {
     return development
-  } else if (window.location.href.startsWith(production.web_pc)) {
+  } else if (production.web_pc.includes(window.location.host)) {
     return production
   } else {
     return local