From dc7481089bb43cbcbc517034642600d42f434017 Mon Sep 17 00:00:00 2001 From: val3344 <924199146@qq.com> Date: Tue, 26 Jan 2021 10:03:45 +0800 Subject: [PATCH] support theme-next refresh (#165) * support theme-next refresh * support theme-next refresh --- lib/hbe.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hbe.js b/lib/hbe.js index 8cc6552..bc024dc 100644 --- a/lib/hbe.js +++ b/lib/hbe.js @@ -201,6 +201,9 @@ const knownPrefix = ""; } }); + // support theme-next refresh + window.NexT && NexT.boot && typeof NexT.boot.refresh === 'function' && NexT.boot.refresh(); + // TOC part var tocDiv = document.getElementById("toc-div"); if (tocDiv) {