local theindex path is accepted too by browsers

This commit is contained in:
Araq 2016-09-09 21:00:06 +02:00
commit 0fd935332e

View file

@ -241,7 +241,7 @@ proc dosearch(value: cstring): Element =
var stuff: Element var stuff: Element
{.emit: """ {.emit: """
var request = new XMLHttpRequest(); var request = new XMLHttpRequest();
request.open("GET", "http://nim-lang.org/0.15.0/theindex.html", false); request.open("GET", "theindex.html", false);
request.send(null); request.send(null);
var doc = document.implementation.createHTMLDocument("theindex"); var doc = document.implementation.createHTMLDocument("theindex");