aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/docs-scenario.html
diff options
context:
space:
mode:
authorIgor Minar2012-11-08 22:15:27 +0100
committerIgor Minar2012-11-11 10:31:27 +0100
commit8650843603be6f6f17aa3f90fb9991420669cb53 (patch)
tree3c3806fa13dc6b61cf409fcaa2cde375af80cc8c /docs/src/templates/docs-scenario.html
parente034fa08a8e92241fa9c46bed735b977b5c29290 (diff)
downloadangular.js-8650843603be6f6f17aa3f90fb9991420669cb53.tar.bz2
chore(docs): fix docs-scenario.html
Diffstat (limited to 'docs/src/templates/docs-scenario.html')
-rw-r--r--docs/src/templates/docs-scenario.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/src/templates/docs-scenario.html b/docs/src/templates/docs-scenario.html
index f1816947..b2e07115 100644
--- a/docs/src/templates/docs-scenario.html
+++ b/docs/src/templates/docs-scenario.html
@@ -3,7 +3,7 @@
<head>
<title>AngularJS Docs E2E Test Runner</title>
<script>
- var gae = (location.pathname.split('/').length == 2),
+ var production = location.hostname === 'docs.angularjs.org',
headEl = document.head,
angularVersion = {
current: '"NG_VERSION_FULL"', // rewrite during build
@@ -33,9 +33,8 @@
function path(name) {
- return gae
- ? 'http://code.angularjs.org/' + angularVersion.stable + '/' +
- name.replace(/\.js$/, '-' + angularVersion.stable + '.js')
+ return production
+ ? 'http://code.angularjs.org/' + angularVersion.stable + '/' + name
: '../' + name;
}
</script>