嵌入式评论也自动开启暗模式吗?

Thanks for catching that! I can’t edit the above post any more, but the window.addEventListener goes at the bottom of the code snippet under (2).

See this real-world example.

5 个赞