Philipp Tuchardt / Add styling to head

Created Thu, 25 Nov 2021 12:31:42 +0000
const addStyle = () => {
    const style = document.createElement('style');
    document.head.append(style);
    return (styleString) => style.textContent = styleString;
})();