Search
setCustomCode
setCustomCode
Install a custom code snippet in the user's website via <script> tags.
framer.setCustomCode({ html: '<script src="https://example.com/script.js"></script>', location: "bodyEnd" })
A plugin can only set custom HTML once per location. Custom code should be valid HTML. Setting html to null clears the installed code snippet.
Parameters
options:SetCustomCodeOptions– The custom code options includinghtmlandlocation.
Returns
Promise<void>