Fix interactive tutorials issues

This commit is contained in:
Roman Hotsiy
2024-02-09 18:20:54 +08:00
parent 498bf7007b
commit 1a3031593e
2 changed files with 7 additions and 2 deletions

View File

@@ -629,6 +629,9 @@ async function show_log(block, msg) {
block.find(".output-area").append(msg)
}
/**
* Run callback only when the current route is loaded.
*/
function onCurrentRouteLoaded(callback) {
const currentPath = window.location.pathname;
window.onRouteChange(() => {