Skip to content

Commit 5b0a9f1

Browse files
authored
Fix using data.init
1 parent 8053869 commit 5b0a9f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def index():
4545
<head>
4646
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/datastar@v1.0.0-RC.7/bundles/datastar.js"></script>
4747
</head>
48-
<body {data.on_load("@get('/updates')")}>
48+
<body {data.init("@get('/updates')")}>
4949
<span id="currentTime"></span><br>
5050
<span data-text="$currentTime"></span>
5151
</body>

0 commit comments

Comments
 (0)