Skip to content

Commit 8299274

Browse files
committed
fix
1 parent 2e7a956 commit 8299274

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/loadPlugins.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const THEME_IDENTIFIERS = new Set([
2323
"bluloco",
2424
]);
2525

26-
export default async function loadPlugins(onlyTheme = false) {
26+
export default async function loadPlugins(loadOnlyTheme = false) {
2727
const plugins = await fsOperation(PLUGIN_DIR).lsDir();
2828
const results = [];
2929
const failedPlugins = [];
@@ -36,7 +36,7 @@ export default async function loadPlugins(onlyTheme = false) {
3636
let pluginsToLoad = [];
3737
const currentTheme = settings.value.appTheme;
3838

39-
if (onlyTheme) {
39+
if (loadOnlyTheme) {
4040
// Only load theme plugins matching current theme
4141
pluginsToLoad = plugins.filter((pluginDir) => {
4242
const pluginId = Url.basename(pluginDir.url);
@@ -54,7 +54,7 @@ export default async function loadPlugins(onlyTheme = false) {
5454
const loadPromises = pluginsToLoad.map(async (pluginDir) => {
5555
const pluginId = Url.basename(pluginDir.url);
5656

57-
if (onlyTheme && currentTheme) {
57+
if (loadOnlyTheme && currentTheme) {
5858
const pluginIdLower = pluginId.toLowerCase();
5959
const currentThemeLower = currentTheme.toLowerCase();
6060
const matchFound = pluginIdLower.includes(currentThemeLower);
@@ -104,7 +104,7 @@ async function cleanupFailedPlugins(pluginIds) {
104104
await fsOperation(pluginDir).delete();
105105
}
106106
} catch (error) {
107-
window.log("error", `Failed to cleanup plugin ${pluginId}:`, error);
107+
console.error(`Failed to cleanup plugin ${pluginId}:`, error);
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)