We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e034fa0 commit 8650843Copy full SHA for 8650843
docs/src/templates/docs-scenario.html
@@ -3,7 +3,7 @@
3
<head>
4
<title>AngularJS Docs E2E Test Runner</title>
5
<script>
6
- var gae = (location.pathname.split('/').length == 2),
+ var production = location.hostname === 'docs.angularjs.org',
7
headEl = document.head,
8
angularVersion = {
9
current: '"NG_VERSION_FULL"', // rewrite during build
@@ -33,9 +33,8 @@
33
34
35
function path(name) {
36
- return gae
37
- ? 'http://code.angularjs.org/' + angularVersion.stable + '/' +
38
- name.replace(/\.js$/, '-' + angularVersion.stable + '.js')
+ return production
+ ? 'http://code.angularjs.org/' + angularVersion.stable + '/' + name
39
: '../' + name;
40
}
41
</script>
0 commit comments