File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,16 @@ You can find the latest stable release of Leaf on our [GitHub page](https://gith
3939``` markdown:no-line-numbers
4040```
4141
42- <script >
43- fetch (" https://api.github.com/repos/leafsphp/leaf/releases/latest" )
42+ <script setup >
43+ if (typeof window !== " undefined" ) {
44+ fetch (" https://api.github.com/repos/leafsphp/leaf/releases/latest" )
4445 .then (res => res .json ())
4546 .then (data => {
4647 // get item with class language-md
4748 document .querySelector (" .language-markdown" ).childNodes .item (2 ).innerHTML = ` <code ># ${ data .name } </code >\n <code >${ data .body } </code >` ;
4849 // innerHTML = ` - ${new Date(data.published_at).toLocaleDateString()} ${data.body}`;
4950 });
51+ }
5052</script >
5153
5254## Latest Leaf MVC Release
You can’t perform that action at this time.
0 commit comments