Closed TotallyNotOndre closed 2 years ago
As I mentioned in Discord, allowing JavaScript in themes is not safe, at least in the current implementation. We should probably fix that before landing this fix.
While yes, JS in themes isn't the safest idea, if you have some common sense and read the theme's source code before installing, its a nice thing for theme creators to use.
Most Cultivation users aren't coders who can read JS, so it's not reasonable to ask them to read themes' source code. I agree JS is useful for themes though.
Disables CSP errors while loading themes js files Before:
After: