Location bug fixes

This commit is contained in:
Natsumi
2021-06-21 14:34:01 +12:00
parent f36e43b25f
commit ff1a1bc199
3 changed files with 8 additions and 6 deletions

View File

@@ -785,6 +785,7 @@ speechSynthesis.getVoices();
},
methods: {
parse() {
this.text = this.location;
var L = API.parseLocation(this.location);
if (L.isOffline) {
this.text = 'Offline';
@@ -6027,7 +6028,8 @@ speechSynthesis.getVoices();
if ((props.location) &&
(props.location[0] !== 'offline') &&
(props.location[0] !== '') &&
((props.location[1] !== 'offline') && (props.location[0] !== 'private'))) {
(props.location[1] !== 'offline') &&
(props.location[1] !== '')) {
$app.addFeed('GPS', ref, {
location: [
props.location[0],