From 70d85079387174494f1f9cfc51f5680fb5be0ed4 Mon Sep 17 00:00:00 2001 From: Ludwig Schubert Date: Tue, 7 Nov 2017 15:44:42 -0800 Subject: [PATCH] Make polyfills link absolute. Release 2.2.7 --- package-lock.json | 2 +- package.json | 2 +- src/transforms/polyfills.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 55fbea8..caed211 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "distill-template", - "version": "2.2.5", + "version": "2.2.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8102981..79780ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "distill-template", - "version": "2.2.5", + "version": "2.2.7", "description": "Template for creating Distill articles.", "main": "dist/template.v2.js", "bin": { diff --git a/src/transforms/polyfills.js b/src/transforms/polyfills.js index a8a143a..4f84217 100644 --- a/src/transforms/polyfills.js +++ b/src/transforms/polyfills.js @@ -42,7 +42,7 @@ const addBackIn = ` window.addEventListener('WebComponentsReady', function() { console.warn('WebComponentsReady'); const loaderTag = document.createElement('script'); - loaderTag.src = '/template.v2.js'; + loaderTag.src = 'https://distill.pub/template.v2.js'; document.head.insertBefore(loaderTag, document.head.firstChild); }); `;