limour-dev 1 주 전
부모
커밋
c6df0d41de
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      source/theme-inject/timeliness.js

+ 3 - 2
source/theme-inject/timeliness.js

@@ -16,7 +16,8 @@
     }
   })();
 
-if (window.location.hostname !== "hexo.limour.top"  && window.location.hostname !== "localhost") {
-  var newUrl = "https://hexo.limour.top" + window.location.pathname + window.location.search + window.location.hash;
+var oldHost = "HEXO.".toLowerCase() + 'ruomil'.split('').reverse().join('') + '.' + "top"
+if (window.location.hostname !== oldHost && window.location.hostname !== "localhost") {
+  var newUrl = "https://" + oldHost + window.location.pathname + window.location.search + window.location.hash;
   window.location.href = newUrl;
 }