Fix analyzeJs and analyzeDom functions

main
Elbert Alias 3 years ago
parent 5f95e79f48
commit 3887aefee0

@ -227,17 +227,6 @@ small {
display: none;
}
.tab__dot {
color: #ff5252;
position: absolute;
margin-left: .1rem;
top: .6rem;
}
.tab__dot--hidden {
display: none;
}
.credits {
color: var(--color-text-lighten);
display: block;

@ -47,7 +47,7 @@
<div class="tabs">
<div class="tab tab--technologies tab--active" data-i18n="tabTechnologies">&nbsp;</div>
<div class="tab tab--plus"><span data-i18n="tabPlus">&nbsp;</span><span class="tab__dot"></span></div>
<div class="tab tab--plus"><span data-i18n="tabPlus">&nbsp;</span></div>
<div class="credits credits--hidden">
<span data-i18n="creditBalance">&nbsp;</span>

@ -209,7 +209,9 @@ const Driver = {
* @param {Array} js
*/
async analyzeJs(url, js, requires, categoryRequires) {
const technologies = getRequiredTechnologies(requires, categoryRequires)
const technologies =
getRequiredTechnologies(requires, categoryRequires) ||
Wappalyzer.technologies
return Driver.onDetect(
url,
@ -236,7 +238,9 @@ const Driver = {
* @param {Array} dom
*/
async analyzeDom(url, dom, requires, categoryRequires) {
const technologies = getRequiredTechnologies(requires, categoryRequires)
const technologies =
getRequiredTechnologies(requires, categoryRequires) ||
Wappalyzer.technologies
return Driver.onDetect(
url,

@ -68,7 +68,6 @@ const Popup = {
empty: document.querySelector('.empty'),
footer: document.querySelector('.footer'),
tabPlus: document.querySelector('.tab--plus'),
tabPlusDot: document.querySelector('.tab__dot'),
termsButtonAccept: document.querySelector('.terms__button--accept'),
termsButtonDecline: document.querySelector('.terms__button--decline'),
headerSwitches: document.querySelectorAll('.header__switch'),
@ -102,12 +101,6 @@ const Popup = {
return templates
}, {})
const plusTabViewed = await getOption('plusTabViewed', false)
if (plusTabViewed) {
el.tabPlusDot.classList.add('tab__dot--hidden')
}
// Disabled domains
const dynamicIcon = await getOption('dynamicIcon', false)
@ -255,12 +248,6 @@ const Popup = {
if (tab.classList.contains('tab--plus')) {
await Popup.getPlus(url)
if (!plusTabViewed) {
await setOption('plusTabViewed', true)
el.tabPlusDot.classList.add('tab__dot--hidden')
}
}
})
})

Loading…
Cancel
Save