Skip to content

Commit c4deb63

Browse files
committed
Revert bad change in behaviour to client.html
Fixes #105 (cherry picked from commit 95e9d6d)
1 parent e0ac8c5 commit c4deb63

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
(function () {
99
var basePath = location.pathname.replace(/\/+[^\/]*$/, '/'),
1010
internConfig = this.__internConfig = {
11-
baseUrl: basePath,
11+
// For users running client.html directly, assume that the base path
12+
// is two levels up (the parent of node_modules); this is most common.
13+
// Users that need something special should provide an absolute module
14+
// path for the config module (e.g. `/path/to/intern/config`) and
15+
// then set `baseUrl` correctly in the `loader` configuration object
16+
// of the config module
17+
baseUrl: basePath === '/__intern/' ? '/' : (basePath + '../../'),
1218
packages: [
1319
{ name: 'intern', location: basePath }
1420
],

0 commit comments

Comments
 (0)