In that case, I think the proper way is to use the official plugin API described here:
It has a function to retrieve the current user:
(But I have to add that the idea of mining a cryptocurrency in JavaScript on a web app seems weird and wrong.)
In that case, I think the proper way is to use the official plugin API described here:
It has a function to retrieve the current user:
(But I have to add that the idea of mining a cryptocurrency in JavaScript on a web app seems weird and wrong.)