[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-08-11 00:25:15 +03:00
parent e1aa8edd42
commit e6038b7060

@ -29,7 +29,8 @@ class Linkedin {
let self = this; let self = this;
const keys = await GM_listValues(); const keys = await GM_listValues();
let loaded = 0; let loaded = 0;
keys.each((i, o) => { for (let o in keys)
{
if (!o.startsWith('data-')) if (!o.startsWith('data-'))
{ {
return; return;
@ -39,7 +40,7 @@ class Linkedin {
await GM_getValue(o) await GM_getValue(o)
); );
loaded += 1; loaded += 1;
}); }
console.log({action: 'loaded', total: loaded}); console.log({action: 'loaded', total: loaded});
} }