COVID Trend Widget: 2 word countries problem?

7
closed
permaMonk
permaMonk
Posted 5 months ago

COVID Trend Widget: 2 word countries problem? #17

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
permaMonk
Created 5 months ago

Wrong place

permaMonk
permaMonk
Created 5 months ago

Maybe not? Idk

mvan231
mvan231
Created 5 months ago

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

permaMonk
permaMonk
Created 5 months ago

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

mvan231
mvan231
Created 5 months 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
permaMonk
Created 5 months ago

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

mvan231
mvan231
Created 5 months ago

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