# Modalità scura automatica anche per i commenti incorporati?

**URL:** <https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347>\
**Category:** Feature\
**Tags:** embedding\
**Created:** [13 Settembre 2020, 5:28am UTC](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347 "2020-09-13T05:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)\
**Post date:** [19 Maggio 2024, 2:41pm UTC](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347/20 "2024-05-19T14:41:08Z")

</div>

Il codice copiabile/incollabile sopra non include l’aggiunta dell’event listener nella finestra di incorporamento:

`window.addEventListener("message", handleMessageListener);`

E una nota: non sono necessarie impostazioni CORS speciali per questo.

---

_[View the full topic](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347)._
