[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-08-11 00:38:49 +03:00
parent c57b449f69
commit 508c55bd68

@ -29,7 +29,7 @@ class Linkedin {
let self = this; let self = this;
const keys = await GM_listValues(); const keys = await GM_listValues();
let loaded = 0; let loaded = 0;
for (let o in keys) for (let o of keys)
{ {
if (!o.startsWith('data-')) if (!o.startsWith('data-'))
{ {
@ -100,12 +100,12 @@ class Linkedin {
let self = this; let self = this;
let current_data = self.parse_header(); let current_data = self.parse_header();
for (let o in current_data[0]) for (let o of current_data[0])
{ {
await self.data_add(o); await self.data_add(o);
} }
for (let o in current_data[1]) for (let o of current_data[1])
{ {
await self.data_add(o); await self.data_add(o);
} }