[Python-modules-commits] [coreschema] 04/06: Use local js files only

Pierre-Elliott Bécue peb-guest at moszumanska.debian.org
Thu Jan 11 12:56:50 UTC 2018


This is an automated email from the git hooks/post-receive script.

peb-guest pushed a commit to branch master
in repository coreschema.

commit 7af05ac7c2bed4ef0705082236d1f01e95bb90c5
Author: Pierre-Elliott Bécue <becue at crans.org>
Date:   Thu Jan 11 13:47:40 2018 +0100

    Use local js files only
    
    The base.html template relies on jquery provided by googleapis. This is
    a privacy breach, which is not suitable for debian policy. Using a local
    library instead.
---
 coreschema/templates/base.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/coreschema/templates/base.html b/coreschema/templates/base.html
index e1431be..5623e4a 100644
--- a/coreschema/templates/base.html
+++ b/coreschema/templates/base.html
@@ -53,8 +53,7 @@
     <!-- Bootstrap core JavaScript
     ================================================== -->
     <!-- Placed at the end of the document so the pages load faster -->
-    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
-    <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
+    <script src="../../assets/js/vendor/jquery.min.js"></script>
     <script src="../../dist/js/bootstrap.min.js"></script>
     <script src="../../assets/js/docs.min.js"></script>
     <script src="chosen.jquery.js"></script>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/coreschema.git



More information about the Python-modules-commits mailing list