From a65415a276e7625cfc3a3d3e67acb2a53a0425b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=20Hamp=C3=B6lz?= Date: Wed, 31 May 2023 10:35:24 +0000 Subject: [PATCH] docs: Improve theme passthrough code comments --- integrations/nextcloud/snappymail/js/snappymail.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integrations/nextcloud/snappymail/js/snappymail.js b/integrations/nextcloud/snappymail/js/snappymail.js index a00402713..6cc319970 100644 --- a/integrations/nextcloud/snappymail/js/snappymail.js +++ b/integrations/nextcloud/snappymail/js/snappymail.js @@ -1,7 +1,7 @@ /** * Nextcloud - SnappyMail mail plugin * - * @author RainLoop Team, Nextgen-Networks (@nextgen-networks), Tab Fitts (@tabp0le), Pierre-Alain Bandinelli (@pierre-alain-b), SnappyMail + * @author RainLoop Team, Nextgen-Networks (@nextgen-networks), Tab Fitts (@tabp0le), Pierre-Alain Bandinelli (@pierre-alain-b), SnappyMail, Rene Hampƶlz (@hampoelz) * * Based initially on https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud/rainloop-app */ @@ -15,6 +15,8 @@ document.onreadystatechange = () => { } }; +// Pass Nextcloud themes and theme attributes to SnappyMail on +// first load and when the SnappyMail iframe is reloaded. document.addEventListener('DOMContentLoaded', () => { const iframe = document.getElementById('rliframe'); if (!iframe) return; @@ -30,11 +32,9 @@ document.addEventListener('DOMContentLoaded', () => { }); passThemes(iframe); - - // TODO: add initial stylesheets without primary colors to improve loading experience }); -// Pass nextcloud themes and theme attributes to SnappyMail. +// Pass Nextcloud themes and theme attributes to SnappyMail. function passThemes(iframe) { if (!iframe) return;