Skip to content

Commit

Permalink
added maps API key in hidden config file
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinrice committed Sep 17, 2018
1 parent 814f66c commit c44b661
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# gitignore file recommended by Github for Node dev env (we do not use all of these)

config.js

.DS_Store
dist*

Expand Down
15 changes: 8 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,20 @@ <h3 style="margin-left: 10px;">Filter Images</h3>
</script>

<script type="text/javascript" src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/config.js"></script>
<script src="main.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/nav.js"></script>
<script src="./js/charts.js"></script>
<script src="./js/home.js"></script>
<script src="./js/filter.js"></script>
<script src="https://maps.googleapis.com/maps/api/js" async defer></script>
<script type="text/javascript">
$('#myModal').on('shown.bs.modal', function () {
console.log('hello');
$('#myInput').focus()
});
</script>
<script>
var key = typeof config === 'undefined' ? "" : config.map_key
var map_src = "https://maps.googleapis.com/maps/api/js?key=" + key
var script = document.createElement('script')
script.src = map_src
document.getElementsByTagName('head')[0].appendChild(script);
</script>

<script>
const {Menu, MenuItem} = electron.remote
Expand Down

0 comments on commit c44b661

Please sign in to comment.