forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-channel.html
26 lines (25 loc) · 1.14 KB
/
front-channel.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>