Skip to content

Commit

Permalink
change secrets handling in heatmap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ianalexmac committed May 9, 2024
1 parent ccd1a4b commit c692454
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ function convertToGeoJSON(data) {
}



fetch('/mapbox-api-key')
.then(response => response.json())
.then(data => {
mapboxgl.accessToken = data.key;
mapboxgl.accessToken = 'MAPBOX_API';

var map = new mapboxgl.Map({
container: 'map', // container id
Expand Down

0 comments on commit c692454

Please sign in to comment.