jihuaqiang 2 年之前
父節點
當前提交
58c88c3c57
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/logic/content/twitter.js

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

@@ -2593,6 +2593,12 @@ export const setGroupInfo = (params = {}) => {
     }
     }
 }
 }
 
 
+export const getExtensionStorgeDataForIframe = (data) => {
+    getChromeStorage(data.key).then((res) => {
+        messageCenter.send(data.iframeID, `IFRAME_GET_EXTENSION_STORGE_DATA-${data.messageID}`, res)
+    });
+}
+
 const getSysTheme = () => {
 const getSysTheme = () => {
     const themeMedia = window.matchMedia("(prefers-color-scheme: light)");
     const themeMedia = window.matchMedia("(prefers-color-scheme: light)");
     if (themeMedia.matches) {
     if (themeMedia.matches) {