Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam
2021-01-15 22:23:56 +01:00
5 changed files with 22 additions and 8 deletions

View File

@@ -54,11 +54,21 @@ function getBundlesWithLabel(label, value) {
}
function getStartupBundles() {
return getBundlesWithLabel("run", "frontendStartup");
if (!process.env.TRILIUM_SAFE_MODE) {
return getBundlesWithLabel("run", "frontendStartup");
}
else {
return [];
}
}
function getWidgetBundles() {
return getBundlesWithLabel("widget");
if (!process.env.TRILIUM_SAFE_MODE) {
return getBundlesWithLabel("widget");
}
else {
return [];
}
}
function getRelationBundles(req) {