diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index 47313c735b..915465df0e 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -110,7 +110,8 @@ def adjust_all_iframes(ev): window.addEventListener('resize', debounce(adjust_all_iframes, 250)) def adjusting_sandboxed_html(html): - ans = sandboxed_html(html, 'html, body { overflow: hidden }', 'allow-same-origin') + css = 'html, body {{ overflow: hidden; color: {} }}'.format(get_color('window-foreground')) + ans = sandboxed_html(html, css, 'allow-same-origin') ans.addEventListener('load', def(ev): adjust_iframe_height(ev.target);) ans.style.height = '50vh' ans.dataset.last_window_width = '0'