Open donick opened 4 years ago
Thanks for reporting! I'll consider using separate css files in the next major release (i.e. v9.0.0).
@idiotWu Can you provide a parameter in init method for choosing create style tag or not? So that user can determine to use the dynamic
Environment
Issue Summary
Browser prompts:
It caused by creating style tag and set its content with textContent property in
style.ts
.Current Behavior
Smooth-scrollbar was blocked to invoke continuously, since it violates CSP.
Expected Behavior
Smooth-scrollbar can works normally without CSP issues.
Steps to Reproduce
Run smooth-scrollbar on a page with restricted
style-src
in CSP.