From 04a856e5c5798f05113ad592ed602f23df6f38b6 Mon Sep 17 00:00:00 2001 From: jsDelivr Bot Date: Mon, 10 Dec 2018 06:28:43 +0100 Subject: [PATCH] Replace RawGit with jsDelivr --- index.html | 2 +- rainbow.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b912b2c..e16b776 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + diff --git a/rainbow.js b/rainbow.js index 92652e2..0248303 100644 --- a/rainbow.js +++ b/rainbow.js @@ -9,13 +9,13 @@ function style(feature) { color: 'white' }; } -$.getJSON("https://rawgit.com/johan/world.geo.json/master/countries.geo.json", function (data) { +$.getJSON("https://cdn.jsdelivr.net/gh/johan/world.geo.json@master/countries.geo.json", function (data) { geojsonLayer = L.geoJson(data, { style: style }); loadMap(); }); -//var geojsonLayer = new L.GeoJSON.AJAX("https://rawgit.com/johan/world.geo.json/master/countries.geo.json", { +//var geojsonLayer = new L.GeoJSON.AJAX("https://cdn.jsdelivr.net/gh/johan/world.geo.json@master/countries.geo.json", { // style: style //}); function loadMap() {