Net#checkDomainName()

checkDomainName(domain) → {boolean}

Compares the given domain name against the hostname of the browser containing the game.
If the domain name is found it returns true.
You can specify a part of a domain, for example 'google' would match 'google.com', 'google.co.uk', etc.
Do not include 'http://' at the start.

Parameters
Name Type Description
domain string
Returns
boolean -

true if the given domain fragment can be found in the window.location.hostname

Source code: net/Net.js (Line 38)
doc_phaser
2017-02-14 10:55:35
Comments
Leave a Comment

Please login to continue.