mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 15:27:40 +00:00
fix issue in small dev.to widget
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
a25173712b
commit
ca89ceb483
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
// Variables used by Scriptable.
|
||||
// These must be at the very top of the file. Do not edit.
|
||||
// icon-color: green; icon-glyph: newspaper;
|
||||
// Version 1.0.1
|
||||
// Version 1.0.2
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////// User-Config /////////////////////////
|
||||
|
@ -137,8 +137,10 @@ if (config.widgetFamily !== 'small') {
|
|||
widget.addSpacer()
|
||||
|
||||
const article = result[0]
|
||||
if (article.main_image) {
|
||||
const imageReq = new Request(article.main_image)
|
||||
widget.backgroundImage = (await imageReq.loadImage())
|
||||
}
|
||||
|
||||
const stack = widget.addStack()
|
||||
stack.layoutHorizontally()
|
||||
|
|
Loading…
Add table
Reference in a new issue