nutshell
nutshell copied to clipboard
Unable to change Nutshell options
I tried to include nutshell using the script tag, but inside it, even after changing the options, they don't reflect in the webpage.
<script src="https://cdn.jsdelivr.net/gh/ncase/nutshell/nutshell.js">
Nutshell.setOptions({
startOnLoad: true, // Start Nutshell on load? (default: true)
lang: 'en', // Language (default: 'en', which is English)
dontEmbedHeadings: true // If 'true', removes the "embed this as a nutshell" option on headings
});
</script>
The dontEmbedHeadings still shows the nutshell logo next to headings.
Hi, I think it works if you split it into two script tags, like this:
<script src="https://cdn.jsdelivr.net/gh/ncase/nutshell/nutshell.js"> </script>
<script>
Nutshell.setOptions({
startOnLoad: true, // Start Nutshell on load? (default: true)
lang: 'en', // Language (default: 'en', which is English)
dontEmbedHeadings: true // If 'true', removes the "embed this as a nutshell" option on headings
});
</script>
Thanks. This indeed worked!