mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 23:37:41 +00:00
fix
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
ce44cd41f2
commit
ed8dbe90ae
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
// Variables used by Scriptable.
|
// Variables used by Scriptable.
|
||||||
// These must be at the very top of the file. Do not edit.
|
// These must be at the very top of the file. Do not edit.
|
||||||
// icon-color: deep-green; icon-glyph: car;
|
// icon-color: deep-green; icon-glyph: car;
|
||||||
// Version 1.0.2
|
// Version 1.0.3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Notice: You need a free API Key from https://developer.mapquest.com for this Widget
|
Notice: You need a free API Key from https://developer.mapquest.com for this Widget
|
||||||
|
@ -106,8 +106,9 @@ if (config.widgetFamily !== 'small') {
|
||||||
navigationImage.imageSize = new Size(25,25)
|
navigationImage.imageSize = new Size(25,25)
|
||||||
navigationImage.tintColor = new Color(iconColorUpdate)
|
navigationImage.tintColor = new Color(iconColorUpdate)
|
||||||
|
|
||||||
if (locactionInformationExists) {
|
let locationString = fm.readString(paths['location'])
|
||||||
let location = fm.readString(paths['location']).split(';')
|
if (locactionInformationExists && locationString) {
|
||||||
|
let location = locationString.split(';')
|
||||||
|
|
||||||
if ((widgetInput[1] || '').trim().toLocaleLowerCase() == 'google') {
|
if ((widgetInput[1] || '').trim().toLocaleLowerCase() == 'google') {
|
||||||
navigationImage.url = `comgooglemaps://?daddr=${location[0]},${location[1]}&travelMode=walking`
|
navigationImage.url = `comgooglemaps://?daddr=${location[0]},${location[1]}&travelMode=walking`
|
||||||
|
|
Loading…
Add table
Reference in a new issue