@opexa/portal-sdk 0.59.13 → 0.59.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6364,20 +6364,19 @@ async function getFingerprint(environment) {
|
|
|
6364
6364
|
if (typeof window === "undefined") return null;
|
|
6365
6365
|
if (!thumbmark_instance) {
|
|
6366
6366
|
thumbmark_instance = new thumbmarkjs.Thumbmark({
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
timeout: 3e4,
|
|
6372
|
-
cache_lifetime_in_ms: 24 * 60 * 60 * 1e3
|
|
6373
|
-
}
|
|
6367
|
+
api_key: environment === "production" ? "8294c227c5194f96e4deb022e8e76293" : void 0,
|
|
6368
|
+
logging: false,
|
|
6369
|
+
timeout: 3e4,
|
|
6370
|
+
cache_lifetime_in_ms: 1 * 60 * 60 * 1e3
|
|
6374
6371
|
});
|
|
6375
6372
|
}
|
|
6376
6373
|
try {
|
|
6374
|
+
const cached = sessionStorage.getItem("fingerprint");
|
|
6375
|
+
if (cached) return cached;
|
|
6377
6376
|
const result = await thumbmark_instance.get();
|
|
6377
|
+
sessionStorage.setItem("fingerprint", result.thumbmark);
|
|
6378
6378
|
return result.thumbmark;
|
|
6379
|
-
} catch
|
|
6380
|
-
console.warn(e);
|
|
6379
|
+
} catch {
|
|
6381
6380
|
return null;
|
|
6382
6381
|
}
|
|
6383
6382
|
}
|