mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
custom widget launchers should not be initialized in safe mode
This commit is contained in:
@@ -37,6 +37,10 @@ export default class LauncherWidget extends BasicWidget {
|
||||
|
||||
const launcherType = note.getLabelValue("launcherType");
|
||||
|
||||
if (glob.TRILIUM_SAFE_MODE && launcherType === 'customWidget') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (launcherType === 'command') {
|
||||
this.innerWidget = this.initCommandLauncherWidget(note)
|
||||
.class("launcher-button");
|
||||
|
||||
Reference in New Issue
Block a user