-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adrienne / Add front channels (#18105)
* feat: store redirect metadata for traders hub from os-redirect * Merge branch 'master' of github.com:deriv-com/deriv-app * chore: add new route for front channels to be registered in hydra * chore: remove route for silent callback
- Loading branch information
1 parent
aae5e48
commit 9eddb5f
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Deriv</title> | ||
<meta charset="utf-8" /> | ||
<script> | ||
try { | ||
// we check if we can access the top.location, if we can't it will throw an error | ||
// and this means this front-channel is not rendered on the same window as the application which is logging out | ||
let isSameOrigin = top.location.hostname === self.location.hostname; | ||
} catch (err) { | ||
localStorage.removeItem('closed_toast_notifications'); | ||
localStorage.removeItem('is_wallet_migration_modal_closed'); | ||
localStorage.removeItem('active_wallet_loginid'); | ||
localStorage.removeItem('config.account1'); | ||
localStorage.removeItem('config.tokens'); | ||
localStorage.removeItem('client.accounts'); | ||
localStorage.removeItem('verification_code.system_email_change'); | ||
localStorage.removeItem('verification_code.request_email'); | ||
localStorage.removeItem('new_email.system_email_change'); | ||
} | ||
</script> | ||
</head> | ||
|
||
<body></body> | ||
</html> |