Skip to content

Commit d362ea1

Browse files
gkalpakellimist
authored andcommitted
chore(docs): use correct script-URL for plnkr on snapshot
Fixes angular#15437 Closes angular#15438
1 parent 0b1c2d9 commit d362ea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/config/services/deployments/production.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ var cdnUrl = googleCdnUrl + versionInfo.cdnVersion;
1313
// The currentVersion may not be available on the cdn (e.g. if built locally, or hasn't been pushed
1414
// yet). This will lead to a 404, but this is preferable to loading a version with which the example
1515
// might not work (possibly in subtle ways).
16-
var examplesCdnUrl = versionInfo.isSnapshot ?
16+
var examplesCdnUrl = versionInfo.currentVersion.isSnapshot ?
1717
(angularCodeUrl + 'snapshot') :
18-
(googleCdnUrl + (versionInfo.version || versionInfo.currentVersion));
18+
(googleCdnUrl + (versionInfo.currentVersion.version || versionInfo.currentVersion));
1919

2020
module.exports = function productionDeployment(getVersion) {
2121
return {

0 commit comments

Comments
 (0)