| 
					
				 | 
			
			
				@@ -111,6 +111,8 @@ export function twitterPinLoginCode(sender, code) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     setMessageCount() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     chrome.cookies.remove(LANDING_PAGE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } catch (error) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -146,6 +148,8 @@ export function discordLoginCode({ code }, sender) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Report.reportLog({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -204,6 +208,8 @@ export function twitterShortUrl(sender, url) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //     state: "BACK_TWITTER_SHORT_URL" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Report.reportLog({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -264,6 +270,8 @@ export function onInstalledUserSet() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Report.reportLog({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -302,7 +310,7 @@ function sendActivetabMessage(message = {}) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             active: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             currentWindow: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, (tabs) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(tabs && tabs.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (tabs && tabs.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 chrome.tabs.sendMessage(tabs[0].id, message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -404,14 +412,14 @@ export function onInstalledCreateTab() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 case 'treasure_info': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  if (res && res.postNickName && res.srcContentId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      created_detail = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      url = `https://twitter.com/${res.postNickName}/status/${res.srcContentId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      chrome.tabs.create({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                          url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (res && res.postNickName && res.srcContentId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        created_detail = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        url = `https://twitter.com/${res.postNickName}/status/${res.srcContentId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        chrome.tabs.create({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (created_detail == false) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -532,6 +540,8 @@ export function getMessageInfo() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     hideBadge(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Report.reportLog({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -627,6 +637,8 @@ export const getSysMessage = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // 向选中的content发送消息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 setContentMessage({ actionType: 'BACK_UNREAD_MESSAGE', data: res }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Report.reportLog({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -686,6 +698,8 @@ export const getTwitterNftPostPre = (params, sender) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             chrome.tabs.sendMessage(sender.tab.id, { actionType: 'BACK_TWITTER_NFT_POST_PRE', data: res.data }, (res) => { console.log(res) }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -695,6 +709,8 @@ export const nftTxtPublish = (params, sender) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.code == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             chrome.tabs.sendMessage(sender.tab.id, { actionType: 'BACK_NFT_PUBLISH_DONE', data: res.data }, (res) => { console.log(res) }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }).catch((error) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log('catch', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |