Make everything work with a strict CSP

This commit is contained in:
FloatingGhost 2023-01-02 15:16:42 +00:00
parent d973396c96
commit f288d0c219
8 changed files with 16 additions and 13 deletions

View file

@ -4,12 +4,10 @@ import { getColors, computeDynamicColor, getOpacitySlot } from '../theme_data/th
export const applyTheme = (input) => {
const { rules } = generatePreset(input)
const head = document.head
const body = document.body
body.classList.add('hidden')
const styleEl = document.createElement('style')
head.appendChild(styleEl)
const styleEl = document.getElementById('theme-holder')
const styleSheet = styleEl.sheet
styleSheet.toString()