mvan231 / Scriptable

MIT License
120 stars 40 forks source link

COVID Trend Widget: 2 word countries problem? #17

Closed permaMonk closed 2 years ago

permaMonk commented 2 years ago

Any problems with a two word country? As example “South Africa”.

If I set in in line 39: const country = args.widgetParameter?args.widgetParameter:'South Africa' i get a: 2021-12-05 14:35:08: Error: The URL is invalid. error.

Any one word country work flawless.

permaMonk commented 2 years ago

Wrong place

permaMonk commented 2 years ago

Maybe not? Idk

mvan231 commented 2 years ago

Did you put it in the widget parameter as explained in the instructions? You should not have to modify the code itself

permaMonk commented 2 years ago

Both. First in widget parameter, later in the code self. Should I delete the widget and start from the beginning?

mvan231 commented 2 years ago

I've updated the widget code to accommodate country names with spaces better. You can get it to work with "South Africa" now.

permaMonk commented 2 years ago

After update it works flawless. Thx for your fast reaction and work. :))

mvan231 commented 2 years ago

So glad to hear it! Also, thanks for using this widget!!!