MCPcopy Create free account
hub / github.com/L-excellence/monitor-sdk / getLogBaseData

Function getLogBaseData

utils/getLogBaseData.ts:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 * getLogBaseData 获取日志基本信息
9 */
10export default function getLogBaseData(): BaseLog {
11 return {
12 title: document.title,
13 url: location.href,
14 userAgent: navigator.userAgent,
15 browser: `${browser.name} ${browser.version}`,
16 device: `${device.model} ${device.vendor}`,
17 os: `${os.name} ${os.version}`,
18 };
19}

Callers 1

sendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected