@mocanvas/mocanvas · constant
declare const embedDefinitions: EmbedDefinition[]The permit list getEmbedDefinition consults. It starts as the defaults and
is meant to be extended by the app:
``ts
embedDefinitions.push({
type: "intranet",
title: "Intranet",
hostnames: ["wiki.example.com"],
toEmbedUrl: (url) => https://wiki.example.com${url.pathname}?embed=1,
})
``
Nothing outside the list is ever put in an iframe.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.