소스 검색

[edit][twitter]

zhangwei 3 년 전
부모
커밋
bfb25b69f6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/entry/content.js

+ 3 - 0
src/entry/content.js

@@ -38,6 +38,9 @@ window.onload = () => {
 };
 
 function init() {
+    if (window.location.href.indexOf('twitter.com') < 0) {
+        return
+    }
     contentTwitterPinLogin(port);
     renderDom(port);
     setIframeRedPacket();