1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-25 17:42:46 +02:00

disqus hash links

This commit is contained in:
Pomax
2020-09-25 21:09:41 -07:00
parent e0f770b2c8
commit d1caf2f8dc
10 changed files with 64 additions and 23 deletions

View File

@@ -13,6 +13,13 @@ let loadDisqus = () => {
globalThis.disqus_config = function () {
this.page.url = "https://pomax.github.io/bezierinfo";
this.page.identifier = "bezierinfo";
this.callbacks.onReady = [
function () {
setTimeout(() => {
document.dispatchEvent(new CustomEvent(`disqus:ready`));
}, 200);
},
];
};
const script = document.createElement("script");