SIGN IN SIGN UP
tw93 / Pake UNCLAIMED

🤱🏻 Turn any webpage into a desktop app with one command.

0 0 42 Rust

fix: use textContent instead of innerHTML for style injection to avoid CSP violations

* set textContent instead of innerHTML for CSS injection

Set node.innerHTML will trigger a `This document requires 'TrustedHTML' assignment` error in chrome, because of CSP protection

Signed-off-by: 九条涼果 <enihsyou@gmail.com>

* Change innerHTML to textContent for style elements

Signed-off-by: 九条涼果 <enihsyou@gmail.com>

---------

Signed-off-by: 九条涼果 <enihsyou@gmail.com>
九条涼果 committed
6350a184b288cc15c3ee905e1382b16f2f0ad8d5
Parent: 169e217
Committed by GitHub <noreply@github.com> on 4/5/2026, 1:20:25 AM