Quite simple, do a request to GetUsername, if you get an error state in the callback (Oppose to not logged in or success) the game is not being played on Nonoba or using the Nonoba wrapper.
Additionally this will not make any outbound requests or anything as the system enters the error state much before that.
Nonoba URL specific code
Chris dijo
hace mucho tiempo | Publicación #2
gws34 dijo
hace mucho tiempo | Publicación #3 Yes that's a nice way to do it, thanks.
Contestar al tema
Regístrate ahora para responder a éste tema
gws34 dijo
hace mucho tiempo | Publicación #1var allowed_site:String = "nonoba.com";
var domain = this.root.loaderInfo.url.split("/")[2];
if (domain.indexOf(allowed_site) == (domain.length - allowed_site.length)) {
onNonoba= true;
}
The flash files are actually served from "amazonaws.com", so you have to use that in any url checks of this type...