Created
August 8, 2017 14:04
-
-
Save matthieu-D/9811f8b3bb4696432b55a004569375c4 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 manifest = new XMLHttpRequest(); | |
manifest.open("get", "/manifest.json", true); | |
manifest.onreadystatechange = function (e) { if (manifest.readyState == 4) { alert(JSON.parse(manifest.responseText).version); } }; | |
manifest.send({}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment