|
@@ -6,9 +6,15 @@ export const closeAchPayNoticeHandler = async () => {
|
|
|
if(res.url.startsWith(payAchNoticeUrl)) {
|
|
|
chrome.tabs.remove(
|
|
|
res.id, () => {
|
|
|
- getChromeStorage('achPayInfo', (res) => {
|
|
|
+ getChromeStorage('achPayInfo', (result) => {
|
|
|
+ let {tab, form} = result || {};
|
|
|
chrome.storage.local.remove("achPayInfo");
|
|
|
- if(res && res.tab) {
|
|
|
+ if(form == 'popupPage') {
|
|
|
+ setChromeStorage({ achPayData : JSON.stringify({
|
|
|
+ form: 'popupPage'
|
|
|
+ })});
|
|
|
+ }
|
|
|
+ if(tab) {
|
|
|
chrome.tabs.highlight({ windowId: res.tab.windowId, tabs: res.tab.index })
|
|
|
}
|
|
|
})
|