We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78bb229 commit 32476f5Copy full SHA for 32476f5
lib/resources/script.js
@@ -240,9 +240,9 @@ function initSearch(name) {
240
}
241
242
var jsonReq = new XMLHttpRequest();
243
- var scriptUrl = URI(document.getElementById("dartdoc_script_js"));
+ var scriptUrl = URI(document.getElementById("dartdoc_script_js").src);
244
245
- jsonReq.open('GET', URI(scriptUrl.directory() + '/../..').absoluteTo(scriptUrl) + '/index.json', true);
+ jsonReq.open('GET', URI(scriptUrl.directory() + '/..').absoluteTo(scriptUrl) + '/index.json', true);
246
jsonReq.addEventListener('load', function() {
247
searchIndex = JSON.parse(jsonReq.responseText);
248
initTypeahead();
0 commit comments