File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ node_modules
2
2
.DS_Store
3
3
client /public /peer.js
4
4
client /public /temp.peer.js
5
+ client /public /apiKeys.js
5
6
# Ignore bundled webpack modules #
6
7
client /public /webpack.min.js
7
8
client /public /webpack.min.js.map
Original file line number Diff line number Diff line change
1
+ // Fill out your API Keys below for each service.
2
+ // Rename this file to apiKeys.js
3
+ window . peerKey = 'hfskdhfkahsfkhsdkf' ;
4
+ window . googleApiKey = 'ajksdfhkahfdkhsdkfjhkshf' ;
Original file line number Diff line number Diff line change 8
8
< link rel ="stylesheet " href ="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css ">
9
9
< link rel ="stylesheet " href ="http://yui.yahooapis.com/pure/0.6.0/base-min.css ">
10
10
< script src ="http://cdn.peerjs.com/0.3/peer.min.js "> </ script >
11
- < script src ="peer.js "> </ script >
12
- < script type ="text/javascript " src ="https://maps.googleapis.com/maps/api/js?key=AIzaSyAtGXLK72mst-2nTDk2iR9Kwjzt6aL47jo "> </ script >
11
+ < script src ="apiKeys.js "> </ script >
12
+ < script type ="text/javascript ">
13
+ var apiSrc = 'https://maps.googleapis.com/maps/api/js?key=' + window . googleApiKey ;
14
+ document . write ( '<script type="text/javascript" src="' + apiSrc + '"></scr' + 'ipt>' ) ;
15
+ </ script >
13
16
< script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-rc1/jquery.min.js "> </ script >
14
17
</ head >
15
18
< body >
You can’t perform that action at this time.
0 commit comments