|
@@ -2,7 +2,7 @@ import { iframeHost } from '@/http/configAPI'
|
|
|
import { getChromeStorage, setChromeStorage } from '@/uilts/chromeExtension.js'
|
|
|
import ToolBox from '@/view/content/tool-box/index.vue'
|
|
|
import { createApp } from 'vue'
|
|
|
-import { getStorage, setStorage, guid } from '@/uilts/help'
|
|
|
+import { getStorage, setStorage, guid, getInnerIframeURL } from '@/uilts/help'
|
|
|
import { chromeExtensionUrl } from '@/uilts/chromeExtension'
|
|
|
// 解析卡片类
|
|
|
// 1.dom匹配
|
|
@@ -315,7 +315,9 @@ class ParseCard {
|
|
|
tweet_str = `&tweetId=${tweet_Id}`
|
|
|
}
|
|
|
_iframe.id = post_Id
|
|
|
- _iframe_url = chromeExtensionUrl + ('iframe/red-packet.html') + `?postId=${post_Id}${tweet_str}&tweet_author=${tweet_author}&window_origin=${window.location.origin}&page_type=${page_type}`;
|
|
|
+ _iframe.dataset.card = 'denet'
|
|
|
+ _iframe_url = getInnerIframeURL(`${iframeHost}/red-pack` + `?postId=${post_Id}${tweet_str}&tweet_author=${tweet_author}&window_origin=${window.location.origin}&page_type=${page_type}&iframeID=${_iframe.id}`);
|
|
|
+ // _iframe_url = chromeExtensionUrl + ('iframe/red-packet.html') + `?postId=${post_Id}${tweet_str}&tweet_author=${tweet_author}&window_origin=${window.location.origin}&page_type=${page_type}`;
|
|
|
// debugger mode
|
|
|
if (window.location.href.includes('denet_debugger')) {
|
|
|
_iframe_url = _iframe_url + '&denet_debugger=1'
|