-
Notifications
You must be signed in to change notification settings - Fork 3
/
bfp-merge.html
25 lines (23 loc) · 1.2 KB
/
bfp-merge.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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BFP Merge</title>
</head>
<body>
<span>browser_fingerprint_id: </span><span id="bfp">null</span>
</body>
<script type="text/javascript">
(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://ahmednawar.github.io/test-pages/websdk.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent".split(" "), 0);
var query = location.search
if (query.length > 0) {
var branch_key = location.search.substr(1).split('=')[1];
}
branch.init(branch_key, function(err, data) {
var storage = localStorage['branch_session_first'];
storage = JSON.parse(storage);
var bfp = storage.browser_fingerprint_id;
document.getElementById("bfp").textContent = bfp;
});
</script>
</script>
</html>