JS / Roam Garden Publishing
{{roam/js}}
let id = "roam-garden-plantsman"
let existingRg = document.getElementById(id)
if (!existingRg) {
const extension = document.createElement("script")
extension.src = "https://resources.roam.garden/js/plantsman.min.js"
extension.id = id
extension.async = true
extension.type = "text/javascript"
document.getElementsByTagName("head")[0].appendChild(extension)
}
JS / Roam 42 Smart Blocks
{{{roam/js}}}
{
var s = document.createElement('script');
s.type = "text/javascript";
s.src = "https://roam42.glitch.me/main.js";
s.async = true;
document.body.appendChild(s);
}