You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varnode=document.getElementById('my-node');domtoimage.toPng(node).then(function(dataUrl){varimg=newImage();img.src=dataUrl;document.body.appendChild(img);}).catch(function(error){console.error('oops, something went wrong!',error);});
Render the body html to image when the user reach new record and show it, then the user can share it friends and social media to flex their score.
Render image when the user get new record, not in every game over.
Can use this library: https://github.com/tsayen/dom-to-image
And share it with native API
The text was updated successfully, but these errors were encountered: