mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
Add mobile dropdown for plugin buttons (#1762)
* Add mobile toolbar buttons * cleanup * more cleanup * Mobile plugin buttons: Add else block & change icon
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