mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-06 13:37:41 +00:00
fix setup issue
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
4d6c438c9d
commit
ce44cd41f2
1 changed files with 9 additions and 6 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.1
|
// Version 1.0.2
|
||||||
|
|
||||||
/*
|
/*
|
||||||
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
|
||||||
|
@ -105,6 +105,8 @@ if (config.widgetFamily !== 'small') {
|
||||||
let navigationImage = iconStack.addImage(SFSymbol.named('arrow.triangle.turn.up.right.diamond').image)
|
let navigationImage = iconStack.addImage(SFSymbol.named('arrow.triangle.turn.up.right.diamond').image)
|
||||||
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 location = fm.readString(paths['location']).split(';')
|
let location = fm.readString(paths['location']).split(';')
|
||||||
|
|
||||||
if ((widgetInput[1] || '').trim().toLocaleLowerCase() == 'google') {
|
if ((widgetInput[1] || '').trim().toLocaleLowerCase() == 'google') {
|
||||||
|
@ -112,6 +114,7 @@ if (config.widgetFamily !== 'small') {
|
||||||
} else {
|
} else {
|
||||||
navigationImage.url = `http://maps.apple.com/maps?saddr=Current%20Location&daddr=${location[0]},${location[1]}`
|
navigationImage.url = `http://maps.apple.com/maps?saddr=Current%20Location&daddr=${location[0]},${location[1]}`
|
||||||
}
|
}
|
||||||
|
}
|
||||||
widget.addSpacer()
|
widget.addSpacer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue