(userAgent, url = document.location.href)
| 2056 | }; |
| 2057 | |
| 2058 | function getBody(userAgent, url = document.location.href) { |
| 2059 | navigator.userAgent = userAgent |
| 2060 | let href = url |
| 2061 | let choose = /((https?:)\/\/([^\/]+))(.+)/.exec(url) |
| 2062 | let [, origin, protocol, host, pathname] = choose; |
| 2063 | document.location.href = href |
| 2064 | document.location.origin = origin |
| 2065 | document.location.protocol = protocol |
| 2066 | document.location.host = host |
| 2067 | document.location.pathname = pathname |
| 2068 | const JF = new JdJrTdRiskFinger(); |
| 2069 | let fp = JF.f.get(function (t) { |
| 2070 | risk_jd_local_fingerprint = t |
| 2071 | return t |
| 2072 | }); |
| 2073 | let arr = td_collect_exe() |
| 2074 | return { fp, ...arr } |
| 2075 | } |
| 2076 | |
| 2077 | JdJrTdRiskFinger.getBody = getBody; |
| 2078 | module.exports = JdJrTdRiskFinger; |
nothing calls this directly
no test coverage detected