Found root cause using the Obsidian Developer Mode. Error Message:
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '[data-path="Icon
"]' is not a valid selector.
at eval (plugin:obsidian-icon-folder:3775:39)
Tested by closing Obsidian. Updating code in plugin folder. Open Obsidian.
Tested On macOS 12.6.3
Added
CSS.escape(...)
tochangePathVisibility(...)
to handle carriage return (\r) and other invalid querySelector paths characters.Supporting Documentation: Use CSS.escape() to escape QuerySelectorAll() - Rick Strahl's Web Log javascript - What chars needs escaping in querySelector? - Stack Overflow
Found root cause using the Obsidian Developer Mode. Error Message:
Tested by closing Obsidian. Updating code in plugin folder. Open Obsidian. Tested On macOS 12.6.3