From c2d3c02bf30df43e1687425ce2d785c341c50b54 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 4 Sep 2023 07:35:02 +0200 Subject: [PATCH] Use local copy of moment.js and no external CDN (perf & privacy) --- app/templates/base.j2 | 2 +- app/templates/sco_page.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/base.j2 b/app/templates/base.j2 index 1be73c172..e4c796dfc 100644 --- a/app/templates/base.j2 +++ b/app/templates/base.j2 @@ -83,7 +83,7 @@ {% block scripts %} {{ super() }} -{{ moment.include_moment() }} +{{ moment.include_moment( local_js=scu.STATIC_DIR+"/libjs/moment.min.js") }} {{ moment.lang(g.locale) }} diff --git a/app/templates/sco_page.j2 b/app/templates/sco_page.j2 index cb3ec8b2f..b097aa8b9 100644 --- a/app/templates/sco_page.j2 +++ b/app/templates/sco_page.j2 @@ -39,7 +39,7 @@ {% block scripts %} {{ super() }} -{{ moment.include_moment() }} +{{ moment.include_moment( local_js=scu.STATIC_DIR+"/libjs/moment.min.js") }} {{ moment.lang(g.locale) }}