Last active
January 9, 2016 03:53
-
-
Save awwong1/41420c35eea7f94dd86a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.open('GET', '/static/common/js/testing.js', true); | |
xmlhttp.onreadystatechange = function () { | |
if (xmlhttp.readyState === XMLHttpRequest.DONE) { | |
eval(xmlhttp.responseText); | |
update_match_details = function (data) { | |
console.log('match_token: ' + data.match_token); | |
console.log('internal_ip: ' + data.internal_ip); | |
var bridge_info = data.bridge_info; | |
console.log('watchLink: ' + get_match_link(data.server_ip, bridge_info.bridge_host, bridge_info.bridge_port, data.match_token)); | |
} | |
start_test_match(); | |
} | |
}; | |
xmlhttp.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment