fix issue in small dev.to widget

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2020-12-30 08:32:41 +01:00
parent a25173712b
commit ca89ceb483
No known key found for this signature in database
GPG key ID: 69DE3C3C097DB7F7

View file

@ -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()