alfred-workflows icon indicating copy to clipboard operation
alfred-workflows copied to clipboard

encodeURI on cssPath to account for spaces

Open pyoio opened this issue 3 years ago • 0 comments

Hey! First of all, thanks for this workflow, found it super useful 😁

I noticed this morning when opening the generated overview page, if your Alfred preferences path has a space in it (e.g., the default prefs location is under Application Support within your home dir) then the CSS href can end up broken.

Example from browser inspect:

image

This change adds encodeURI around the cssPath generation to handle that situation!

pyoio avatar Jan 19 '22 11:01 pyoio