mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-29 04:20:30 +00:00
chore(docs): fix docs-scenario.html
This commit is contained in:
parent
e034fa08a8
commit
8650843603
1 changed files with 3 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue