Skip to content

Commit f403296

Browse files
committed
Referecne the data directory relatively
1 parent 01562ed commit f403296

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/Lecture57/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded",
88

99
// Call server to get the name
1010
$ajaxUtils
11-
.sendGetRequest("/data/name.txt",
11+
.sendGetRequest("data/name.txt",
1212
function (request) {
1313
var name = request.responseText;
1414

examples/Lecture58/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded",
88

99
// Call server to get the name
1010
$ajaxUtils
11-
.sendGetRequest("/data/name.json",
11+
.sendGetRequest("data/name.json",
1212
function (res) {
1313
var message =
1414
res.firstName + " " + res.lastName

0 commit comments

Comments
 (0)