From 8b6defc2d4d52187d99842392cc1b733d6397a37 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Fri, 19 Jul 2013 22:21:23 +0100 Subject: [PATCH] make jquery include URLs protocol relative (i.e. without "https:") - this had been done before (and the comment was there), but got lost at some point --- code/boot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/boot.js b/code/boot.js index fe61eced..8c190770 100644 --- a/code/boot.js +++ b/code/boot.js @@ -511,17 +511,17 @@ function asyncLoadScript(a){return function(b,c){var d=document.createElement("s try { console.log('Loading included JS now'); } catch(e) {} @@INCLUDERAW:external/leaflet.js@@ +@@INCLUDERAW:external/L.Geodesic.js@@ // modified version of https://github.com/shramov/leaflet-plugins. Also // contains the default Ingress map style. -@@INCLUDERAW:external/L.Geodesic.js@@ @@INCLUDERAW:external/leaflet_google.js@@ @@INCLUDERAW:external/autolink.js@@ try { console.log('done loading included JS'); } catch(e) {} //note: no protocol - so uses http or https as used on the current page -var JQUERY = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; -var JQUERYUI = 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js'; +var JQUERY = '//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; +var JQUERYUI = '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js'; // after all scripts have loaded, boot the actual app load(JQUERY).then(JQUERYUI).thenRun(boot);