Skip to content

Commit a36d0b8

Browse files
committed
fix: handle /oauth URL without /signin suffix
1 parent 02d8c5e commit a36d0b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const publishFirefoxExtension = async (
6767
logger.log('Waiting for redirection to signin page')
6868
await page.waitForNavigation()
6969
}
70-
if (await page.evaluate(/* istanbul ignore next */ () => location.pathname === '/oauth/signin')) {
70+
if (await page.evaluate(/* istanbul ignore next */ () => /^\/oauth(\/signin)?\/?/.test(location.pathname))) {
7171
logger.log('Redirected to signin page')
7272
await page.waitForSelector('input[type="email"]')
7373
logger.log('Entering email')

0 commit comments

Comments
 (0)