From a27b0e09c16acc08f5faa870f41179d1ebe24112 Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Tue, 6 Apr 2021 22:15:26 +0900 Subject: [PATCH] Fix an issue that inline styles in the offline search result is ignored. --- assets/js/offline-search.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/offline-search.js b/assets/js/offline-search.js index 0d9698007a..ae622d2f4c 100644 --- a/assets/js/offline-search.js +++ b/assets/js/offline-search.js @@ -188,8 +188,13 @@ }); }); + // Enable inline styles in popover. + const whiteList = $.fn.tooltip.Constructor.Default.whiteList; + whiteList['*'].push('style'); + $targetSearchInput .data('content', $html[0].outerHTML) + .popover({ whiteList: whiteList }) .popover('show'); }; });