Skip to content

Commit

Permalink
πŸ› detect manual redirect mode
Browse files Browse the repository at this point in the history
- return http status of 0 not 302
- returns type as 'opaqueredirect' (at least in firefox)
  • Loading branch information
vokimon committed May 30, 2024
1 parent 7eed605 commit 5439415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomatic/ui/src/services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function handleHttpErrors(context) {
return undefined
}
// TODO: Not working yet
if (response.status === 302) {
if (response.status === 302 || response.type === 'opaqueredirect') {
messages.error('Tens desactivada la VPN!', { context })
return undefined
}
Expand Down

0 comments on commit 5439415

Please sign in to comment.