Move ConfigManager modal HTML to template element #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: ConfigManager.createConfigModal() contained a 100-line HTML template literal with interpolated config values, making it hard to read, debug, and maintain.
Solution: Moved the static modal HTML to a template element in index.html. ConfigManager now clones the template and populates dynamic values (orientation, dark mode, background settings, sites) programmatically after cloning.
Files changed: