mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 23:59:59 +01:00
use isLabelTruthy() for most binary labels
This commit is contained in:
@@ -10,7 +10,7 @@ export default class ScriptLauncher extends AbstractLauncher {
|
||||
}
|
||||
|
||||
async launch() {
|
||||
if (this.launcherNote.hasLabel('scriptInLauncherContent')) {
|
||||
if (this.launcherNote.isLabelTruthy('scriptInLauncherContent')) {
|
||||
await this.launcherNote.executeScript();
|
||||
} else {
|
||||
const script = await this.launcherNote.getRelationTarget('script');
|
||||
|
||||
Reference in New Issue
Block a user