File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
background/services/helper Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,10 @@ export async function requestXOAuthToken() {
187187 await requestExtensionPermissionFromContentScript ( {
188188 origins : XOAuthRequestOrigins ,
189189 } )
190- await fetch ( 'https://firefly.social/api/mask/delegate-x-token' )
190+ await Promise . all ( [
191+ fetch ( 'https://firefly.social/api/mask/delegate-x-token' ) ,
192+ fetch ( 'https://canary.firefly.social/api/mask/delegate-x-token' ) ,
193+ ] )
191194 const step1 = await getRequestToken ( client )
192195 const step1_oauth_token = step1 . get ( 'oauth_token' )
193196 pendingOAuth = Promise . withResolvers ( )
Original file line number Diff line number Diff line change @@ -13,4 +13,6 @@ export const XOAuthRequestOrigins: string[] = [
1313 // In order to run content script on it
1414 'https://firefly.social/api/mask/delegate-x-token' ,
1515 'https://firefly.social/api/auth/callback/twitter' ,
16+ 'https://canary.firefly.social/api/mask/delegate-x-token' ,
17+ 'https://canary.firefly.social/api/auth/callback/twitter' ,
1618]
You can’t perform that action at this time.
0 commit comments