|
@@ -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'
|
|
|
});
|