From 0f18fdefa5084fa421d89e61d0ffb05fe18e0ca4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Jul 2017 11:50:01 +0530 Subject: [PATCH] Same for sandboxed html on the book details page --- src/pyj/book_list/book_details.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'