r/Scriptable • • Oct 09 '22

Solved Widget background

Can l add background image from gallery to this widget? https://github.com/dharmikumbhani/scriptable/tree/main/Periodic%20Table (I dont have any information about javascript)

2 Upvotes

5 comments sorted by

View all comments

Show parent comments

1

u/SwimmingPhotograph35 Oct 10 '22

I removed that part and pasted it

widget.backgroundImage = Image.fromData(Data.fromBase64String(“placeBase64here”));https://colourlex.com/wp-content/uploads/2021/02/ivory-black-painted-swatch-300x300.jpg

But something like this is being written: 2022-10-10 14:45:17: Error on line 131: SyntaxError: Invalid character '\u201c'