[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-08-14 23:17:43 +03:00
parent 1018ad3266
commit 7444095e03

@ -69,6 +69,14 @@ class Linkedin {
}; };
} }
clean_page() {
if (location.href.search('empty_body=true') != -1)
{
$('head').empty();
$('body').empty();
}
}
async data_load() { async data_load() {
let self = this; let self = this;
const keys = await GM_listValues(); const keys = await GM_listValues();
@ -462,6 +470,8 @@ const online_fxreader_linkedin = new Linkedin();
const l = new Linkedin(); const l = new Linkedin();
(async () => { (async () => {
l.clean_page();
await l.data_load(); await l.data_load();
const disconnect = l.listener_add(); const disconnect = l.listener_add();