Browse Source

Merge branch 'dev_1.1.1' of https://git.yishihui.com/DeNet/de-net into dev_1.1.1

zhangwei 2 years ago
parent
commit
950c53649f
2 changed files with 2 additions and 4 deletions
  1. 2 3
      src/logic/content/nft.js
  2. 0 1
      src/view/iframe/nft/group.vue

+ 2 - 3
src/logic/content/nft.js

@@ -207,9 +207,8 @@ function _postTweetContent() {
     if (tempNftGroupPost && tempNftGroupPost.groupId) {
         publishNFTTweetPost(tempNftGroupPost)
         // 非首页处理
-        let jumpUrl = new URL(tempNftGroupPost['entryUrl'] || '');
-        let pathname = jumpUrl.pathname || '';
-        if (pathname !== '/home') {
+        let homeTag = document.querySelectorAll('div[data-testid="toolBar"]');
+        if (homeTag.length === 1) {
             jumpTwitterDetailByAlert()
         }
     }

+ 0 - 1
src/view/iframe/nft/group.vue

@@ -15,7 +15,6 @@ const clickHandler = (item) => {
         let { code, data = {} } = res
         if (code === 0) {
             chrome.tabs.getCurrent((tab) => {
-                data['entryUrl'] = tab.url;
                 chrome.tabs.sendMessage(tab.id, { actionType: "IFRAME_NFT_GROUP_LIST_HIDE" });
                 chrome.tabs.sendMessage(tab.id, {
                     actionType: "IFRAME_NFT_GROUP_SET_CONTENT",