-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathexample.html
More file actions
22 lines (22 loc) · 602 Bytes
/
Copy pathexample.html
File metadata and controls
22 lines (22 loc) · 602 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body onload="init()">
<script>
var exports = {};
function init() {
var fpPromise = fingerprint();
// console.log(fpPromise);
fpPromise.then((output) => {
// console.log(output);
document.write("FP: " + output.fingerprint + "\n<br>\n<code>" + JSON.stringify(output.profile, null, 4).replace(/\n/g, "<br>").replace(/\x20/g, " "));
}).catch((err) => {
console.log(err);
});
}
</script>
<script src="opfs.js"></script>
</body>
</html>