Doc Posted September 22, 2020 Share Posted September 22, 2020 Is there a way to pull a embedded games localstorage data after a games score is set and add it to my database? I can see the score updating in the localstorage from the domain I`m getting the game from, should the localstorage update for my domain too? I`m trying to get scores to save with vBulletin arcade. Thanks! Quote Link to comment Share on other sites More sharing options...
Doc Posted October 3, 2020 Author Share Posted October 3, 2020 $(window).on('message onmessage', function(extractscore) { if (ev.originalEvent.origin === 'https://game-site.com') { // your submit code and score variable: extractscore.originalEvent.score } } Could something like this work? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.