Skip to content

Commit

Permalink
Merge pull request #1 from npmcdn-to-unpkg-bot/npmcdn-to-unpkg
Browse files Browse the repository at this point in the history
Replace npmcdn.com with unpkg.com
  • Loading branch information
netcarver authored Sep 6, 2016
2 parents bc5eb6c + 366a27f commit df2efe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions InputfieldLeafletMapMarker.module
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class InputfieldLeafletMapMarker extends Inputfield {
$class = $this->className();
$assetPath = $this->config->urls->$class;

$this->config->styles->add(($this->config->https ? 'https' : 'http') . '://npmcdn.com/leaflet@0.7.7/dist/leaflet.css');
$this->config->styles->add(($this->config->https ? 'https' : 'http') . '://unpkg.com/leaflet@0.7.7/dist/leaflet.css');
$this->config->styles->add($assetPath . 'Control.Geocoder.css');
//$this->config->styles->add($this->config->urls->$class . 'InputfieldLeafletMapMarker.css');
$this->config->scripts->add(($this->config->https ? 'https' : 'http') . '://npmcdn.com/leaflet@0.7.7/dist/leaflet.js');
$this->config->scripts->add(($this->config->https ? 'https' : 'http') . '://unpkg.com/leaflet@0.7.7/dist/leaflet.js');
$this->config->scripts->add($assetPath . 'assets/leaflet-providers/leaflet-providers.js');
$this->config->scripts->add($assetPath . 'Control.Geocoder.js');

Expand Down
4 changes: 2 additions & 2 deletions MarkupLeafletMap.module
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ class MarkupLeafletMap extends WireData implements Module {
}
$lines .= <<<LINES
<!-- Styles supporting the use of Leaflet.js -->
<link rel="stylesheet" type="text/css" href="https://npmcdn.com/leaflet@0.7.7/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/leaflet@0.7.7/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="{$url}assets/leaflet-markercluster/MarkerCluster.css" />
<link rel="stylesheet" type="text/css" href="{$url}assets/leaflet-markercluster/MarkerCluster.Default.css" />

<!-- Scripts supporting the use of Leaflet.js -->
<script type="text/javascript" src="https://npmcdn.com/leaflet@0.7.7/dist/leaflet.js"></script>
<script type="text/javascript" src="https://unpkg.com/leaflet@0.7.7/dist/leaflet.js"></script>
<script type="text/javascript" src="{$url}assets/leaflet-markercluster/leaflet.markercluster.js"></script>
<script type="text/javascript" src="{$url}assets/leaflet-providers/leaflet-providers.js"></script>
<script type="text/javascript" src="{$url}MarkupLeafletMap.js"></script>
Expand Down

0 comments on commit df2efe6

Please sign in to comment.