Skip to content

Commit

Permalink
mainWindow: fix syntax when minified
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Jan 9, 2024
1 parent 0c497a6 commit 84b3df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ setInterval(() => {
host.insertAdjacentElement('afterend', oaVersion);

let advanced = document.querySelector('[class*="socialLinks"]').parentElement.querySelector('[class*="premiumTab"] ~ [class*="header"] + [class*="item"] + [class*="item"] + [class*="item"] + [class*="item"] + [class*="item"] + [class*="item"] + [class*="item"] + [class*="item"] + [class*="item"] ~ [class*="separator"]')?.previousSibling;
if (!advanced) advanced = [...document.querySelectorAll('[class*="item"]')].find(x => x.textContent === 'Advanced')
if (!advanced) advanced = [...document.querySelectorAll('[class*="item"]')].find(x => x.textContent === 'Advanced');
if (!advanced || document.getElementById('openasar-item')) return;

const oaSetting = advanced.cloneNode(true);
Expand Down

0 comments on commit 84b3df4

Please sign in to comment.