Explorar el Código

[add][sendContentByTwitterID]

zhangwei hace 2 años
padre
commit
3e7ebc5cee
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      src/logic/content/twitter.js

+ 13 - 0
src/logic/content/twitter.js

@@ -2626,3 +2626,16 @@ export const showPublishDialog = () => {
         smallBtn.click();
     }
 }
+
+// 获取推文发送回去 
+export const sendContentByTwitterID = (tweet_Id) => {
+    // 获取内容
+    let txt = parseCard.getContentByTwitterId(tweet_Id)
+    // 发送
+    chrome.runtime.sendMessage({
+        actionType: "CONTENT_GET_TWEET_TXT", data: {
+            tweet_Id,
+            txt
+        }
+    })
+}