Skip to content

Commit

Permalink
fix: o, for new Obsidian version (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Oct 17, 2024
1 parent e77c5e4 commit 17e14f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/setting-search.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env osascript -l JavaScript
ObjC.import("stdlib");
ObjC.import("Foundation");
const app = Application.currentApplication();
app.includeStandardAdditions = true;
//──────────────────────────────────────────────────────────────────────────────
Expand Down Expand Up @@ -49,11 +48,12 @@ function run() {
//──────────────────────────────────────────────────────────────────────────────
const settings = [];

enabledCorePlugins.forEach((/** @type {string} */ pluginID) => {
for (const [pluginID, enabled] of Object.entries(enabledCorePlugins)) {
if (!enabled) continue;
const hasSettings = corePluginsWithSettings
.map((/** @type {{ id: string; }} */ p) => p.id)
.includes(pluginID);
if (!hasSettings) return;
if (!hasSettings) continue;

const pluginName = corePluginsWithSettings.filter(
(/** @type {{ id: string; }} */ item) => item.id === pluginID,
Expand All @@ -77,7 +77,7 @@ function run() {
},
},
});
});
}

standardSettings.forEach(
(/** @type {{ id: string; title: string; match: string; }} */ setting) => {
Expand Down

0 comments on commit 17e14f7

Please sign in to comment.