Skip to content

Commit

Permalink
support theme-next refresh (#165)
Browse files Browse the repository at this point in the history
* support theme-next refresh

* support theme-next refresh
  • Loading branch information
val3344 authored Jan 26, 2021
1 parent 544d2d1 commit dc74810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hbe.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ const knownPrefix = "<hbe-prefix></hbe-prefix>";
}
});

// 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) {
Expand Down

0 comments on commit dc74810

Please sign in to comment.