Skip to content

Commit d723096

Browse files
committed
fix: add few comments and remove duplicate calls
1 parent 2568a6f commit d723096

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/lib/loadPlugins.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ export default async function loadPlugins(onlyTheme = false) {
5757
if (onlyTheme && currentTheme) {
5858
const pluginIdLower = pluginId.toLowerCase();
5959
const currentThemeLower = currentTheme.toLowerCase();
60-
let matchFound = false;
61-
if (pluginIdLower.includes(currentThemeLower)) {
62-
matchFound = true;
63-
}
64-
60+
const matchFound = pluginIdLower.includes(currentThemeLower);
61+
// Skip if:
62+
// 1. No match found with current theme AND
63+
// 2. It's not a theme plugin at all
6564
if (!matchFound && !isThemePlugin(pluginId)) {
6665
return;
6766
}

src/lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ async function onDeviceReady() {
236236
setTimeout(async () => {
237237
document.body.removeAttribute("data-small-msg");
238238
app.classList.remove("loading", "splash");
239-
applySettings.afterRender();
240239

241240
// load plugins
242241
try {

0 commit comments

Comments
 (0)