Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
k03mad committed Jan 25, 2024
1 parent db7a9ce commit c538fca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions public/plugins/add-mult.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$(item).insertAfter($(after));
}, ITEM_MOVE_TIMEOUT);

const addMult = () => {
const main = () => {
const field = $(/* html */`
<li class="menu__item selector" ${NEW_ITEM_ATTR}>
<div class="menu__ico">
Expand Down Expand Up @@ -50,11 +50,11 @@
};

if (window.appready) {
addMult();
main();
} else {
Lampa.Listener.follow('app', event => {
if (event.type === 'ready') {
addMult();
main();
}
});
}
Expand Down
6 changes: 3 additions & 3 deletions public/plugins/add-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const ITEM_PLUGINS_SELECTOR = '[data-component="plugins"]';

const addStore = () => {
const main = () => {
if (
Lampa.Settings.main
&& Lampa.Settings.main()
Expand Down Expand Up @@ -55,11 +55,11 @@
});

if (window.appready) {
addStore();
main();
} else {
Lampa.Listener.follow('app', event => {
if (event.type === 'ready') {
addStore();
main();
}
});
}
Expand Down
6 changes: 3 additions & 3 deletions public/plugins/hide-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
'.open--feed',
];

const hide = () => ITEMS_HIDE_SELECTORS.forEach(item => $(item).hide());
const main = () => ITEMS_HIDE_SELECTORS.forEach(item => $(item).hide());

if (window.appready) {
hide();
main();
} else {
Lampa.Listener.follow('app', event => {
if (event.type === 'ready') {
hide();
main();
}
});
}
Expand Down

0 comments on commit c538fca

Please sign in to comment.