This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
docs/config/services/deployments Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,23 @@ var angularCodeUrl = '//code.angularjs.org/';
77
88var cdnUrl = googleCdnUrl + versionInfo . cdnVersion ;
99
10- // The "examplesCdnUrl " here applies to the examples when they are opened in plnkr.co.
10+ // The "examplesDependencyPath " here applies to the examples when they are opened in plnkr.co.
1111// The embedded examples instead always include the files from the *default* deployment,
1212// to ensure that the source files are always available.
1313// The plnkr examples must always use the code.angularjs.org source files.
1414// We cannot rely on the CDN files here, because they are not deployed by the time
1515// docs.angularjs.org and code.angularjs.org need them.
16- var examplesDependencyPath = versionInfo . currentVersion . isSnapshot ?
17- ( angularCodeUrl + 'snapshot' ) :
18- ( angularCodeUrl + ( versionInfo . currentVersion . version || versionInfo . currentVersion . version ) ) ;
16+ var versionPath = versionInfo . currentVersion . isSnapshot ?
17+ 'snapshot' :
18+ ( versionInfo . currentVersion . version || versionInfo . currentVersion . version ) ;
19+ var examplesDependencyPath = angularCodeUrl + versionPath + '/' ;
1920
2021module . exports = function productionDeployment ( getVersion ) {
2122 return {
2223 name : 'production' ,
2324 examples : {
2425 commonFiles : {
25- scripts : [ examplesDependencyPath + '/ angular.min.js' ]
26+ scripts : [ examplesDependencyPath + 'angular.min.js' ]
2627 } ,
2728 dependencyPath : examplesDependencyPath
2829 } ,
You can’t perform that action at this time.
0 commit comments