improved_intra icon indicating copy to clipboard operation
improved_intra copied to clipboard

Fixed the theme loader as to work when <head> isn't yet created

Open Maix0 opened this issue 1 year ago • 0 comments

This small pull request fixes the theme loader so it waits until the window fires the event DOMContentLoaded It also makes it so the two <link> elements are now refered to with an id (using the improved_intra__<NAME> as to never conflict with other ids). This allows the use of a "getter" and to only create the element if it doesn't exist. the next step should be to unconditionally create such elements, and just remove the href element (or maybe point to an empty css file ?) This would allow it to not dance around creating new elements and remove the if needed.

This pull request also include a very minor change to build.sh (chaning the shbang to /usr/bin/env bash as to work on my nixos machine.) This should have no effect whatsoever for other distribution.

Maix0 avatar Feb 17 '24 21:02 Maix0