Skip to content

Commit d86b108

Browse files
committed
fix: remove crypto.uuid api use to imporve compat with old browsers
1 parent dd07882 commit d86b108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extensions/default/Phoenix/serverSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ define(function (require, exports, module) {
5151
function _setupUserContext() {
5252
userContext = localStorage.getItem(USER_CONTEXT);
5353
if(!userContext){
54-
userContext = crypto.randomUUID().split("-")[0];
54+
userContext = "p-" + Math.round( Math.random()*10000000000000).toString(16);
5555
localStorage.setItem(USER_CONTEXT, userContext);
5656
}
5757
}

0 commit comments

Comments
 (0)