Add future note about init function

hugo
Aiden Bai 3 years ago
parent 32c79a561f
commit e4cc625c33
No known key found for this signature in database
GPG Key ID: D37584388675FF3A

@ -67,6 +67,7 @@
resources.Minify }}
<script type="module">
import { init } from '{{$router.Permalink}}';
// NOTE: everything within this callback will be executed for every page navigation. This is a good place to put JavaScript that loads or modifies data on the page.
init(() => {
drawGraph(
{{strings.TrimRight "/" .Page.Permalink}},

Loading…
Cancel
Save