소스 검색

[edit][format]

zhangwei 2 년 전
부모
커밋
76699a57bc
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/logic/background/twitter.js

+ 3 - 3
src/logic/background/twitter.js

@@ -495,7 +495,7 @@ export function getMessageInfo() {
 }
 
 export function readTaskAllMsg({ msgType }, cb) {
-    try{
+    try {
         fetchReadTaskAllMsg({
             msgType // 1:任务红包 2:钱包明细
         }).then(res => {
@@ -513,7 +513,7 @@ export function readTaskAllMsg({ msgType }, cb) {
 }
 
 export const onDisconnectHandler = (port) => {
-    try{
+    try {
         if (port.name === "popup" || port.name === "popup_transactions") {
             let msgType = port.name === "popup" ? 1 : 2;
             readTaskAllMsg({ msgType }, () => {
@@ -530,7 +530,7 @@ export const onDisconnectHandler = (port) => {
 }
 
 export const injectExtensionPopup = (tab) => {
-    try{
+    try {
         sendActivetabMessage({
             actionType: 'BG_INJECT_EXTENSION_POPUP'
         });