From 0848d4c2558c0747bc9aedee60e7c20bdaf08832 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 7 May 2015 16:02:00 -0400 Subject: [PATCH] LP#1452883: prevent staff client warnings w/ Google Analytics In particular, the Security Warning that goes "You have requested an encrypted page that contains some unencrypted information..." Signed-off-by: Jason Etheridge Signed-off-by: Josh Stompro Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/goog_analytics.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 b/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 index ce1e1ae19d..5070537eef 100644 --- a/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 +++ b/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 @@ -10,7 +10,7 @@ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + ga.src = ('oils:' == document.location.protocol || 'https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); -- 2.11.0