how to update device id with same user id use javascript

how to update device id with same user id use javascript

  

i want to update device id with same userid, and i using this script but don't effect in mobile. so, is there any another script for mobile ?

Hello Erron,
Can you please explain more about your issue.