From 58a4e2f152430db3ed8241ab6b14b4a5c4f6e655 Mon Sep 17 00:00:00 2001 From: F1xGOD <105874129+F1xGOD@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:11:17 -0700 Subject: [PATCH] ds --- password.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/password.js b/password.js index 4b822d63..d7393199 100644 --- a/password.js +++ b/password.js @@ -3,6 +3,16 @@ import { getDatabase, ref, onValue, set } from "https://www.gstatic.com/firebase import { getMessaging, onMessage } from "https://www.gstatic.com/firebasejs/10.8.0/firebase-messaging.js"; import { getMessaging as getMessagingSw } from "https://www.gstatic.com/firebasejs/10.8.0/firebase-messaging-sw.js"; import { onBackgroundMessage } from "https://www.gstatic.com/firebasejs/10.8.0/firebase-messaging-sw.js"; +const fpPromise = import('https://fpjscdn.net/v3/Mqp8FONFFHZ5RWbNYULb') +.then(FingerprintJS => FingerprintJS.load()) + +// Get the visitorId when you need it. +fpPromise +.then(fp => fp.get()) +.then(result => { + const visitorId = result.visitorId + console.log(visitorId) +}) import "/platform.js"; function getUserAgent(){ return platform.parse(navigator.userAgent);