|
@@ -1,4 +1,4 @@
|
|
|
-import { getChromeStorage, setChromeStorage, sendChromeTabMessage } from '@/uilts/chromeExtension.js'
|
|
|
+import { getChromeStorage, setChromeStorage } from '@/uilts/chromeExtension.js'
|
|
|
import { throttle, getQueryString, getCookie, nextTick, getQueryStringByUrl } from '@/uilts/help'
|
|
|
import { discordAuthRedirectUri } from '@/http/configAPI'
|
|
|
import { reportSrcPublishEvent } from '@/http/publishApi'
|
|
@@ -7,6 +7,7 @@ import { fetchAddFinishEvent } from '@/logic/background/fetch/facebook';
|
|
|
import { showNFTGroupIcon, hideNFTGroupList, checkUserJoinGroup, elemAddEventListener, addJoinedGroupList } from '@/logic/content/nft';
|
|
|
import { getTwitterNftGroupInfo } from '@/http/nft'
|
|
|
import { jumpTwitterDetailByAlert, showEditTweet } from '@/logic/content/help/twitter.js'
|
|
|
+import { clearPostContent } from '@/logic/content/nft.js'
|
|
|
|
|
|
let dom = {};
|
|
|
|
|
@@ -756,12 +757,6 @@ export function initExecuteScript(changes) {
|
|
|
init()
|
|
|
}
|
|
|
}
|
|
|
- if (changes.userInfo) {
|
|
|
- let item = JSON.parse(changes.userInfo.newValue)
|
|
|
- if (item) {
|
|
|
- sendChromeTabMessage({ actionType: "FINISH_GROUP_BANNNER" }, () => { })
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
const createNFTIframe = ({ url, id }, callback) => {
|
|
@@ -1303,12 +1298,13 @@ export const showTwitterPost = (data) => {
|
|
|
return
|
|
|
}
|
|
|
click_old_time = click_new_time
|
|
|
- console.log('showEditTweet')
|
|
|
- showEditTweet()
|
|
|
- contentGetNftPostPre({
|
|
|
- groupId: data.groupId
|
|
|
+ showEditTweet(() => {
|
|
|
+ clearPostContent(() => {
|
|
|
+ contentGetNftPostPre({
|
|
|
+ groupId: data.groupId
|
|
|
+ })
|
|
|
+ })
|
|
|
})
|
|
|
-
|
|
|
// addPublishTipsIframe({ type: 'nft' })
|
|
|
|
|
|
setGroupTabStatus();
|