[tor-commits] [tpo/staging] Update to script in line

emmapeel at torproject.org emmapeel at torproject.org
Sat Apr 6 18:25:13 UTC 2019


commit a989ff9529451bce20b1d047da67866d51232052
Author: hiro <hiro at torproject.org>
Date:   Fri Apr 5 01:05:28 2019 +0200

    Update to script in line
---
 assets/static/js/download.js | 12 ------------
 templates/meta.html          |  1 +
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/assets/static/js/download.js b/assets/static/js/download.js
deleted file mode 100644
index 17a5d88..0000000
--- a/assets/static/js/download.js
+++ /dev/null
@@ -1,12 +0,0 @@
-$(".downloadLink").click(
-    function(e) {
-        e.preventDefault();
-
-        //open download link in new page
-        window.open( $(this).attr("href") );
-
-        //redirect current page to success page
-        window.location="{{ '/thank-you'|url(alt=this.alt) }}";
-        window.focus();
-    }
-);
diff --git a/templates/meta.html b/templates/meta.html
index ff32484..5de33ec 100644
--- a/templates/meta.html
+++ b/templates/meta.html
@@ -2,6 +2,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}>
 <meta charset="utf-8">
 <meta http-equiv="Content-Security-Policy" content="base-uri 'self'">
+
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <meta name="description" content="{{ _('Defend yourself against tracking and surveillance. Circumvent censorship.') }}">
 <meta name="twitter:card" content="summary" />





More information about the tor-commits mailing list