alfred-workflows
alfred-workflows copied to clipboard
encodeURI on cssPath to account for spaces
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:
This change adds encodeURI
around the cssPath generation to handle that situation!