Skip to content

Commit 0944be0

Browse files
rwaldrondmethvin
authored andcommitted
Fix #11257. Correct path to source files.
1 parent eefead3 commit 0944be0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/data/include_js.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@
7070
*/
7171

7272
// javascript fallback using src files in case this is not run on a PHP server!
73-
var baseURL = document.location.href.replace( /\/test\/.+/, "/"),
74-
files = [
73+
var files = [
7574
"core",
7675
"callbacks",
7776
"deferred",
@@ -98,5 +97,5 @@
9897
i = 0;
9998

10099
for ( ; i < len; i++ ) {
101-
document.write("<script src=\"" + baseURL + "src/" + files[ i ] + ".js\"><"+"/script>");
100+
document.write("<script src=\"../src/" + files[ i ] + ".js\"><"+"/script>");
102101
}

0 commit comments

Comments
 (0)