Ahoy,
I'd like to get the params of the newgrounds website from a game that's in an iframe on Newgrounds.
I'm creating an invite system that allows the player to share a url with their friends to play them.
We can do stuff like
let searchParams = new URLSearchParams(window.location.search) param = searchParams.get('invite')
However, to get the url of the parent we can do
var url = document.referrer
or
var url = (parent !== window) ? document.referrer : document.location;
is there a way I can do this but obtain the actual params?
I'm thinking the answers no, because newgrounds hosts the games on a subdomain and there's the crossorigin request stuff that'll get in the way.
But heyho, just trying my luck, is it possible?
Cheers
UPDATE: maybe there's a way via the API?