Skip to content

Commit c157d21

Browse files
committed
Change URL for Google Maps API to new proxy that hides the API key. Re-establish support for IE 11 and other ES5 browsers.
1 parent 9a0a7f2 commit c157d21

7 files changed

Lines changed: 13 additions & 32 deletions

File tree

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Sky View Café
22

3-
Copyright © 2017-2018 Kerry Shetline, kerry@shetline.com
3+
Copyright © 2017-2019 Kerry Shetline, kerry@shetline.com
44

55
### Licensing
66

browserslist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
last 2 versions
1010
Firefox ESR
1111
not dead
12-
not IE 9-11 # For IE 9-11 support, remove 'not'.
12+
IE 11
13+
not IE 9-10

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "svc-ng",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"license": "MIT AND GPL-3.0-or-later",
55
"author": "Kerry Shetline <kerry@shetline.com>",
66
"scripts": {
77
"ng": "ng",
88
"start": "ng serve",
9-
"build": "ng build --prod",
9+
"build": "ng build --prod --sourceMap=true",
1010
"test": "ng test",
1111
"lint": "ng lint",
1212
"e2e": "ng e2e"

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="about-dialog">
44
<img src="/assets/resources/svc_lunar_eclipse.png" alt="lunar eclipse" width="64" height="64">
55
<h2>Sky View Café NP</h2>
6-
Version 1.7.1<br><br>
6+
Version 1.7.2<br><br>
77
Copyright © 2016-2019 Kerry Shetline.
88
</div>
99
</p-dialog>

src/assets/about.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@
6060
<h2 class="header-sans"><a name="history">What's New / Version History</a></h2>
6161
<div style="padding-left: 1em; text-indent: -1em">
6262

63+
<p><b>1.7.2, 2019-06-12:</b> Updated access to Google Maps. Regained ability to support Internet Explorer 11 and
64+
other ES5-level web browsers.</p>
65+
6366
<p><b>1.7.1, 2019-06-12:</b> Fixed broken support for Edge web browser. Fixed touch interface access to clock,
6467
latitude, and longitude.</p>
6568

66-
<p><b>1.7.0, 2019-06-09:</b> Update to use Angular 8, and to use ES6 (ES2017) for up-to-date web browsers. Internet
69+
<p><b>1.7.0, 2019-06-09:</b> Update to use Angular 8, and to use ES6 (ES2015) for up-to-date web browsers. Internet
6770
Explorer and other older browsers are no longer supported.</p>
6871

6972
<p><b>1.6.0, 2019-06-08:</b> Various behind-the-scenes updates.</p>

src/index.html

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,14 @@
7474
}
7575
}
7676
</script>
77-
<!-- If you copy the code below you MUST REPLACE the API key with YOUR OWN key. -->
7877
<script type="text/javascript" async defer
79-
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCUwvZPoiKPTs-yTaAf3jh2O6ysNTmG-X8&callback=initGoogleMaps"></script>
78+
src="https://skyviewcafe.com/maps/"></script>
8079
</head>
8180
<body>
8281
<div class="appWrapper"><svc-app>
8382
<div style="font: 14px Arial, Helvetica, sans-serif; text-align: center;
8483
position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 3em;">
8584
<i class="fas fa-spinner fa-pulse fa-2x fa-fw"></i> Loading...</div>
86-
</svc-app></div><script>
87-
var supportsES6 = function() {
88-
try {
89-
new Function("(a = 0) => a");
90-
return true;
91-
}
92-
catch (err) {
93-
return false;
94-
}
95-
}();
96-
97-
if (!supportsES6) {
98-
var appParent = document.querySelector('.appWrapper');
99-
100-
if (appParent) {
101-
appParent.children[0].style.display = 'none';
102-
var message = document.createElement('p');
103-
message.textContent = 'Sky View Café requires an up-to-date ES6 (ES2015)-capable web browser. Internet Explorer \
104-
and other older web browsers are not supported.';
105-
appParent.appendChild(message);
106-
}
107-
}
108-
</script>
85+
</svc-app></div>
10986
</body>
11087
</html>

0 commit comments

Comments
 (0)