mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -53,9 +53,14 @@ function getBundlesWithLabel(label, value) {
|
||||
return bundles;
|
||||
}
|
||||
|
||||
function getStartupBundles() {
|
||||
function getStartupBundles(req) {
|
||||
if (!process.env.TRILIUM_SAFE_MODE) {
|
||||
return getBundlesWithLabel("run", "frontendStartup");
|
||||
if (req.query.mobile === "true") {
|
||||
return getBundlesWithLabel("run", "mobileStartup");
|
||||
}
|
||||
else {
|
||||
return getBundlesWithLabel("run", "frontendStartup");
|
||||
}
|
||||
}
|
||||
else {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user