generated from electron-react-boilerplate/electron-react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
thankyou.html
61 lines (58 loc) · 1.66 KB
/
thankyou.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>Please close this tab</title>
<meta name="description" content="Please close this tab" />
<style>
body {
position: relative;
color: darkblue;
height: 100vh;
background: lightsteelblue;
font-family: 'Noto Sans JP', sans-serif;
overflow-y: hidden;
display: flex;
justify-content: center;
align-items: center;
}
.newline {
display: flex;
justify-content: center;
align-items: center;
margin: 20px 0;
}
.tm {
margin-top: 3em;
}
#edge {
display: none;
}
</style>
</head>
<body>
<div>
<h1 class="newline">Thank you for logging in.</h1>
<h1 class="newline">Please close this tab.</h1>
<!-- Unfortunately Microsoft Edge sometimes wants user input but doesn't ask for it!! -->
<h2 id="edge" class="tm">
If the application is not opening: click within this tab, then type
Ctrl+Shift+R
</h2>
</div>
<script>
const electronUrl = 'com.example.electron:/implicit-result';
//console.log (`##### redirecting to ${electronUrl + window.hash}`)
window.location = electronUrl + window.location.hash;
// For Edge and IE browsers: show the Edge info
const agent = window.navigator.userAgent.toLowerCase();
const edge =
agent.indexOf('edg/') > -1 ||
agent.indexOf('edge/') > -1 ||
agent.indexOf('trident/') > -1;
if (edge) {
document.getElementById('edge').style.display = 'block';
}
</script>
</body>
</html>