Skip to content

Commit a757cf4

Browse files
committed
Prevent mink UI from displaying when still waiting for results. Closes #265
1 parent e14273a commit a757cf4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mink-plugin/mink.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ function setBadgeTextBasedOnBrowserActionState (tabid) {
116116
return // Badge has not yet been set
117117
}
118118
if (debug) { console.log('u') }
119-
displayMinkUI(tabid)
119+
120+
chrome.browserAction.getBadgeText({tabId: tabid}, function (currentBadgeText) {
121+
if (currentBadgeText !== stillProcessingBadgeDisplay) {
122+
displayMinkUI(tabid)
123+
}
124+
})
120125
})
121126
}
122127

0 commit comments

Comments
 (0)