Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8650843

Browse files
committed
chore(docs): fix docs-scenario.html
1 parent e034fa0 commit 8650843

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/src/templates/docs-scenario.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>AngularJS Docs E2E Test Runner</title>
55
<script>
6-
var gae = (location.pathname.split('/').length == 2),
6+
var production = location.hostname === 'docs.angularjs.org',
77
headEl = document.head,
88
angularVersion = {
99
current: '"NG_VERSION_FULL"', // rewrite during build
@@ -33,9 +33,8 @@
3333

3434

3535
function path(name) {
36-
return gae
37-
? 'http://code.angularjs.org/' + angularVersion.stable + '/' +
38-
name.replace(/\.js$/, '-' + angularVersion.stable + '.js')
36+
return production
37+
? 'http://code.angularjs.org/' + angularVersion.stable + '/' + name
3938
: '../' + name;
4039
}
4140
</script>

0 commit comments

Comments
 (0)