Fix analyzeJs and analyzeDom functions

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

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

@ -47,7 +47,7 @@
<div class="tabs"> <div class="tabs">
<div class="tab tab--technologies tab--active" data-i18n="tabTechnologies">&nbsp;</div> <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"> <div class="credits credits--hidden">
<span data-i18n="creditBalance">&nbsp;</span> <span data-i18n="creditBalance">&nbsp;</span>

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

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

Loading…
Cancel
Save