|
@@ -1,5 +1,5 @@
|
|
|
import { getChromeStorage, setChromeStorage } from '@/uilts/chromeExtension.js'
|
|
|
-import { throttle, getQueryString, getCookie, nextTick, getQueryStringByUrl } from '@/uilts/help'
|
|
|
+import { throttle, getQueryString, getCookie, nextTick, getQueryStringByUrl, getInnerIframeURL } from '@/uilts/help'
|
|
|
import { discordAuthRedirectUri, iframeHost } from '@/http/configAPI'
|
|
|
import { reportSrcPublishEvent } from '@/http/publishApi'
|
|
|
import Report from "@/log-center/log"
|
|
@@ -2388,7 +2388,7 @@ const addTabGroupContent = (cb) => {
|
|
|
}
|
|
|
let iframe = document.createElement('iframe');
|
|
|
iframe.id = 'de-tab-group-content';
|
|
|
- iframe.src = `${iframeHost}/tab-group` + `?params=${JSON.stringify(params)}`;
|
|
|
+ iframe.src = getInnerIframeURL(`${iframeHost}/tab-group` + `?params=${JSON.stringify(params)}&iframeID=${iframe.id}`);
|
|
|
iframe.style.cssText = `border: medium none; height: 500px;display: none`
|
|
|
|
|
|
let iframeContent = getGroupTabContentNode();
|
|
@@ -2594,3 +2594,9 @@ export const showPublishDialog = () => {
|
|
|
smallBtn.click();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+export const getExtensionStorgeDataForIframe = (data) => {
|
|
|
+ getChromeStorage(data.key).then((res) => {
|
|
|
+ messageCenter.send(data.iframeID, `IFRAME_GET_EXTENSION_STORGE_DATA-${data.messageID}`, res)
|
|
|
+ });
|
|
|
+}
|