浏览代码

[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();