mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
added "safe mode" environment variable switch which disables startup scripts and resets tabs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user