Skip to content

Commit

Permalink
Clarify ajax warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmrugg committed May 12, 2015
1 parent ba0f16a commit b204d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/ajax_demo.html
Expand Up @@ -38,7 +38,7 @@

if (location.protocol === "file:") {
document.getElementById("warning").style.display = "block";
document.getElementById("warning").innerHTML = "Sorry, but Ajax does not work from the <code><b>file:</b></code> protocol.<br>Try <a href=\"https://nmrugg.github.io/LZMA-JS/demos/ajax_demo.html\">https://nmrugg.github.io/LZMA-JS/demos/ajax_demo.html</a> instead.";
document.getElementById("warning").innerHTML = "Sorry, but Ajax does not work from the <code><b>file:</b></code> protocol. This is a limitation of your browser, not LZMA-JS. You'll need to setup your own localhost server to try it out, or just view the demo <a href=\"https://nmrugg.github.io/LZMA-JS/demos/ajax_demo.html\">here</a> instead.";
}
</script>
</body>

0 comments on commit b204d15

Please sign in to comment.