Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 8, 2017 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/9811f8b3bb4696432b55a004569375c4 to your computer and use it in GitHub Desktop.
Save matthieu-D/9811f8b3bb4696432b55a004569375c4 to your computer and use it in GitHub Desktop.
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