(tabId, changeInfo, tab, signupTabId)
| 143 | } |
| 144 | |
| 145 | function getStep8CallbackUrlFromTabUpdate(tabId, changeInfo, tab, signupTabId) { |
| 146 | if (!Number.isInteger(signupTabId) || tabId !== signupTabId) return ''; |
| 147 | const candidates = [changeInfo?.url, tab?.url]; |
| 148 | for (const candidate of candidates) { |
| 149 | if (isLocalhostOAuthCallbackUrl(candidate)) { |
| 150 | return candidate; |
| 151 | } |
| 152 | } |
| 153 | return ''; |
| 154 | } |
| 155 | |
| 156 | return { |
| 157 | getPanelMode, |
no test coverage detected