aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-14 17:00:23 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-14 17:00:23 +0000
commit52e79b293a5595fa558b080e934cf985c5e1c1b7 (patch)
tree2838298314783c55bf53d8c9d1b0724325b9fcfa /templates
parent17a3844c49d4769c8d47b50fce4a4a711748bd18 (diff)
Vendor in idb-keyval.
Easier working with CSP headers.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/common_scripts.html2
-rw-r--r--templates/web/base/offline/service_worker.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/common_scripts.html b/templates/web/base/common_scripts.html
index f94b3d464..b8c4db343 100644
--- a/templates/web/base/common_scripts.html
+++ b/templates/web/base/common_scripts.html
@@ -46,7 +46,7 @@ IF c.user_exists AND (c.user.from_body OR c.user.is_superuser);
END;
IF c.user.has_body_permission_to('planned_reports');
scripts.push(
- 'https://cdn.jsdelivr.net/npm/idb-keyval@3/dist/idb-keyval-iife.min.js',
+ version('/vendor/idb-keyval-iife.min.js'),
version('/cobrands/fixmystreet/offline.js'),
);
END;
diff --git a/templates/web/base/offline/service_worker.html b/templates/web/base/offline/service_worker.html
index 0feb26ce6..3c480f9b1 100644
--- a/templates/web/base/offline/service_worker.html
+++ b/templates/web/base/offline/service_worker.html
@@ -6,7 +6,7 @@ SET scripts_seen = {};
~%]
-importScripts('https://cdn.jsdelivr.net/npm/idb-keyval@3/dist/idb-keyval-iife.min.js');
+importScripts('[% version('/vendor/idb-keyval-iife.min.js') %]');
const requiredOffline = [
"[% version('/cobrands/' _ c.cobrand.asset_moniker _ '/base.css') %]",