We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec3fec7 commit aed63beCopy full SHA for aed63be
logseq/custom.js
@@ -10,3 +10,12 @@ if (document.querySelector("html").getAttribute("data-theme") === "light") {
10
}
11
12
document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";
13
+
14
+// Override the pushState method for correct hashchange event (for analytics)
15
+// seems router issue
16
+const originalPushState = history.pushState;
17
18
+history.pushState = function (state, title, url) {
19
+ originalPushState.apply(history, arguments);
20
+ window.dispatchEvent(new Event("hashchange"));
21
+};
0 commit comments