File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -575,19 +575,6 @@ export default class BackgroundProcess {
575
575
this . setBadgeState ( )
576
576
}
577
577
578
- definedWindowIdByTabNum ( tabId ) {
579
- let savedTab
580
-
581
- for ( let i = 0 ; i < this . tabs . size ; i ++ ) {
582
- const tabsIter = this . tabs . values ( )
583
- const tabInstance = tabsIter . next ( ) . value
584
- if ( tabInstance . tabObj && tabInstance . tabObj . tabId === tabId ) {
585
- savedTab = tabInstance
586
- }
587
- }
588
- return savedTab ? savedTab . tabObj . windowId : 1
589
- }
590
-
591
578
/**
592
579
* Called when a page is loaded.
593
580
* Use this to listen on webNavigation.onCompleted rather than tabs.onUpdated
@@ -598,8 +585,9 @@ export default class BackgroundProcess {
598
585
* @param details
599
586
* @return {Promise.<void> }
600
587
*/
601
- async navigationCompletedListener ( tabId ) {
602
- const finalWindowId = this . definedWindowIdByTabNum ( tabId )
588
+ async navigationCompletedListener ( tabId , changeInfo , tab ) {
589
+ if ( changeInfo . status !== 'complete' ) { return }
590
+ const finalWindowId = tab . windowId
603
591
const tmpTabUniqueId = Tab . createUniqueId ( tabId , finalWindowId )
604
592
605
593
if ( this . tabs . has ( tmpTabUniqueId ) ) {
Original file line number Diff line number Diff line change 21
21
<key >CFBundleShortVersionString </key >
22
22
<string >3.4.1 </string >
23
23
<key >CFBundleVersion </key >
24
- <string >incr-3.4.x.20211117323 </string >
24
+ <string >comp-i662-lexical-dicts.20211118643 </string >
25
25
<key >LSApplicationCategoryType </key >
26
26
<string >public.app-category.education </string >
27
27
<key >LSMinimumSystemVersion </key >
Original file line number Diff line number Diff line change 17
17
<key >CFBundleShortVersionString </key >
18
18
<string >3.4.1 </string >
19
19
<key >CFBundleVersion </key >
20
- <string >incr-3.4.x.20211117323 </string >
20
+ <string >comp-i662-lexical-dicts.20211118643 </string >
21
21
<key >LSMinimumSystemVersion </key >
22
22
<string >$(MACOSX_DEPLOYMENT_TARGET) </string >
23
23
<key >NSExtension </key >
You can’t perform that action at this time.
0 commit comments