From 464fd773999970ae2338d921b118327a999adefd Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Sat, 26 Nov 2016 23:09:04 +0200 Subject: [PATCH 1/2] chore(docs): use correct script-URL for plnkr on snapshot Fixes #15437 --- docs/config/services/deployments/production.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/services/deployments/production.js b/docs/config/services/deployments/production.js index 2e090bf3d5a9..faa437d36f69 100644 --- a/docs/config/services/deployments/production.js +++ b/docs/config/services/deployments/production.js @@ -13,7 +13,7 @@ var cdnUrl = googleCdnUrl + versionInfo.cdnVersion; // The currentVersion may not be available on the cdn (e.g. if built locally, or hasn't been pushed // yet). This will lead to a 404, but this is preferable to loading a version with which the example // might not work (possibly in subtle ways). -var examplesCdnUrl = versionInfo.isSnapshot ? +var examplesCdnUrl = versionInfo.currentVersion.isSnapshot ? (angularCodeUrl + 'snapshot') : (googleCdnUrl + (versionInfo.version || versionInfo.currentVersion)); From 561644894ca545a6a3c9fcb0d4c373e4b2292de8 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Mon, 28 Nov 2016 11:09:20 +0200 Subject: [PATCH 2/2] fixup! chore(docs): use correct script-URL for plnkr on snapshot --- docs/config/services/deployments/production.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/services/deployments/production.js b/docs/config/services/deployments/production.js index faa437d36f69..747e7a1016bd 100644 --- a/docs/config/services/deployments/production.js +++ b/docs/config/services/deployments/production.js @@ -15,7 +15,7 @@ var cdnUrl = googleCdnUrl + versionInfo.cdnVersion; // might not work (possibly in subtle ways). var examplesCdnUrl = versionInfo.currentVersion.isSnapshot ? (angularCodeUrl + 'snapshot') : - (googleCdnUrl + (versionInfo.version || versionInfo.currentVersion)); + (googleCdnUrl + (versionInfo.currentVersion.version || versionInfo.currentVersion)); module.exports = function productionDeployment(getVersion) { return {