disable inclusion should work only on non-root notes

This commit is contained in:
azivner 2018-03-08 23:35:08 -05:00
parent e86f1e0d05
commit 9ba6e6d0f5

View File

@ -73,7 +73,7 @@ async function getScriptBundle(note, root = true, scriptEnv = null, includedNote
return;
}
if (await note.hasAttribute('disable_inclusion')) {
if (!root && await note.hasAttribute('disable_inclusion')) {
return;
}