jihuaqiang 2 years ago
parent
commit
58c88c3c57
1 changed files with 6 additions and 0 deletions
  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 themeMedia = window.matchMedia("(prefers-color-scheme: light)");
     if (themeMedia.matches) {