wenliming 3 лет назад
Родитель
Сommit
f32d0cc880
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      src/entry/content.js
  2. 1 1
      src/logic/twitter.js

+ 2 - 1
src/entry/content.js

@@ -58,9 +58,10 @@ function init() {
         }
     });
     getChromeStorage("userSettings", (res) => {
+        addPinedPop();
         if (res && !res.isOnToolbar) {
             setTimeout(() => {
-                addPinedPop();
+                showPinTips();
                 chrome.storage.local.remove("userSettings");
             }, 800);
         }

+ 1 - 1
src/logic/twitter.js

@@ -131,7 +131,7 @@ export function addPinedPop() {
     }
 
     let popWrapper = document.createElement('div');
-    popWrapper.style.cssText = 'position: fixed; height: 400px;width: 300px;top: 12px;right: 20px;border-radius: 12px;border: 0.5px solid #919191;box-sizing: border-box;padding: 20px;background: #fff';
+    popWrapper.style.cssText = 'position: fixed; height: 400px;width: 300px;top: 12px;right: 20px;border-radius: 12px;border: 0.5px solid #919191;box-sizing: border-box;padding: 20px;background: #fff;display:none';
     popWrapper.id = 'de-pin-pop'
 
     let img = document.createElement('img');