|
@@ -75,7 +75,7 @@ export function hideIframeHandler() {
|
|
|
export function showTwitterPublishDialogHandler(publishRes) {
|
|
|
dom.tweetBtn.click();
|
|
|
_setPublishContent(publishRes.srcContent);
|
|
|
- _publishTweetEvent(publishRes.postId);
|
|
|
+ _publishTweetEvent(publishRes.postId, bindTwitterArtMethod);
|
|
|
}
|
|
|
|
|
|
export function showPinTips() {
|
|
@@ -553,17 +553,17 @@ function setIframeRedPacket() {
|
|
|
}
|
|
|
|
|
|
// 监听点击发推 按钮绑定事件
|
|
|
-document.addEventListener('click', (e) => {
|
|
|
- try {
|
|
|
- if (e.target.dataset && e.target.dataset.testid && e.target.dataset.testid == 'tweetButton') {
|
|
|
- bindTwitterArtMethod()
|
|
|
- } else if (e.target.closest('div[data-testid=tweetButton]')) {
|
|
|
- bindTwitterArtMethod()
|
|
|
- }
|
|
|
- } catch (error) {
|
|
|
- console.error('error', error)
|
|
|
- }
|
|
|
-})
|
|
|
+// document.addEventListener('click', (e) => {
|
|
|
+// try {
|
|
|
+// if (e.target.dataset && e.target.dataset.testid && e.target.dataset.testid == 'tweetButton') {
|
|
|
+// bindTwitterArtMethod()
|
|
|
+// } else if (e.target.closest('div[data-testid=tweetButton]')) {
|
|
|
+// bindTwitterArtMethod()
|
|
|
+// }
|
|
|
+// } catch (error) {
|
|
|
+// console.error('error', error)
|
|
|
+// }
|
|
|
+// })
|
|
|
|
|
|
|
|
|
export function initExecuteScript(changes) {
|