Fossil SCM
chat app now explicitly sets the body.chat CSS class, to account for skins which include a BODY tag in their header and therefore do not get one injected by the style API.
Commit
feaa3b164082cecac3e6f2d00572de1d0e031639d91e280a7de191feb17a092e
Parent
ba3ebf0de93178a…
1 file changed
+2
+2
| --- src/chat.c | ||
| +++ src/chat.c | ||
| @@ -147,10 +147,12 @@ | ||
| 147 | 147 | /* Always in-line the javascript for the chat page */ |
| 148 | 148 | @ <script nonce="%h(style_nonce())">/* chat.c:%d(__LINE__) */ |
| 149 | 149 | /* We need an onload handler to ensure that window.fossil is |
| 150 | 150 | initialized before the chat init code runs. */ |
| 151 | 151 | @ window.addEventListener('load', function(){ |
| 152 | + @ document.body.classList.add('chat') | |
| 153 | + @ /*^^^for skins which add their own BODY tag */; | |
| 152 | 154 | @ window.fossil.config.chat = { |
| 153 | 155 | @ pingTcp: %d(iPingTcp), |
| 154 | 156 | @ initSize: %d(db_get_int("chat-initial-history",50)), |
| 155 | 157 | @ imagesInline: !!%d(db_get_boolean("chat-inline-images",1)) |
| 156 | 158 | @ }; |
| 157 | 159 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -147,10 +147,12 @@ | |
| 147 | /* Always in-line the javascript for the chat page */ |
| 148 | @ <script nonce="%h(style_nonce())">/* chat.c:%d(__LINE__) */ |
| 149 | /* We need an onload handler to ensure that window.fossil is |
| 150 | initialized before the chat init code runs. */ |
| 151 | @ window.addEventListener('load', function(){ |
| 152 | @ window.fossil.config.chat = { |
| 153 | @ pingTcp: %d(iPingTcp), |
| 154 | @ initSize: %d(db_get_int("chat-initial-history",50)), |
| 155 | @ imagesInline: !!%d(db_get_boolean("chat-inline-images",1)) |
| 156 | @ }; |
| 157 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -147,10 +147,12 @@ | |
| 147 | /* Always in-line the javascript for the chat page */ |
| 148 | @ <script nonce="%h(style_nonce())">/* chat.c:%d(__LINE__) */ |
| 149 | /* We need an onload handler to ensure that window.fossil is |
| 150 | initialized before the chat init code runs. */ |
| 151 | @ window.addEventListener('load', function(){ |
| 152 | @ document.body.classList.add('chat') |
| 153 | @ /*^^^for skins which add their own BODY tag */; |
| 154 | @ window.fossil.config.chat = { |
| 155 | @ pingTcp: %d(iPingTcp), |
| 156 | @ initSize: %d(db_get_int("chat-initial-history",50)), |
| 157 | @ imagesInline: !!%d(db_get_boolean("chat-inline-images",1)) |
| 158 | @ }; |
| 159 |