jihuaqiang 2 gadi atpakaļ
vecāks
revīzija
58c88c3c57
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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) {