mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 12:52:48 +00:00
Some checks are pending
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
* dynamic import * perf: entry * fix: jieba package
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import FingerprintJS from '@fingerprintjs/fingerprintjs';
|
|
|
|
export const getUserFingerprint = async () => {
|
|
const fp = await FingerprintJS.load();
|
|
const result = await fp.get();
|
|
console.log(result.visitorId);
|
|
};
|
|
|
|
export const hasHttps = () => {
|
|
return window.location.protocol === 'https:';
|
|
};
|