gatsby-remark-graph-towavephone
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -11,7 +11,11 @@ exports.onInitialClientRender = function (n, config) { | ||
// XXX: ugly hack because onRouteUpdate doesn't know when the react is done | ||
const init = () => { | ||
if (window.mermaid) window.mermaid.init(undefined, document.getElementsByClassName('mermaid')) | ||
else setInterval(init, 200) | ||
function init() { | ||
if (window.mermaid) { | ||
window.mermaid.init(undefined, document.getElementsByClassName('mermaid')) | ||
} else { | ||
setInterval(init, 200) | ||
} | ||
} | ||
init() | ||
} |
{ | ||
"name": "gatsby-remark-graph-towavephone", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Make nice graphs in your markdown files in gatsbyjs, using mermaid", | ||
@@ -5,0 +5,0 @@ "author": "David Konsumer <konsumer@jetboystudio.com> (http://konsumer.js.org)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53415
7
27