-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth.xht
32 lines (30 loc) · 887 Bytes
/
auth.xht
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
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Referrer-Policy" content="no-referrer" />
<meta name="referrer" content="no-referrer" />
<meta name="viewport" content="width=device-width,initial-scale=1" />>
<base href="/" target="_blank" />
<title>Loading...</title>
</head>
<body>
<div>Loading...</div>
<script type="text/javascript">
// <![CDATA[
"use strict"; (() => {
const url = new URL(window.location.href);
const win = window.opener;
if (win == null) {
console.error("Failed to access window opener.");
return;
}
win.focus();
win.postMessage(url.hash);
self.close();
})();
// ]]>
</script>
</body>
</html>