Fix content script messaging, popup layout, add technology descriptions

main
Elbert Alias 4 years ago
parent 4e8cf66677
commit 2d88739d78

@ -11194,7 +11194,8 @@
10
],
"icon": "splitbee.svg",
"script": "^https:\\/\\/cdn\\.splitbee\\.io\\/sb\\.js",
"script": "^https://cdn\\.splitbee\\.io/sb\\.js",
"js": "splitbee",
"website": "https://splitbee.io"
},
"Splunk": {
@ -12704,6 +12705,7 @@
"website": "https://www.volusion.com"
},
"Vue.js": {
"description": "Vue is a progressive framework for building user interfaces.",
"cats": [
12
],

@ -135,10 +135,6 @@ a:hover {
padding-bottom: 1rem;
}
.category__heading {
white-space: nowrap;
}
.category__link {
font-weight: bold;
line-height: 2rem;
@ -184,7 +180,6 @@ a:hover {
display: flex;
align-items: center;
margin-bottom: .2rem;
white-space: nowrap;
}
.technology__icon {

@ -7,7 +7,7 @@ const Content = {
* Initialise content script
*/
async init() {
if (await Content.driver('isDisabledDomain', [location])) {
if (await Content.driver('isDisabledDomain', location.href)) {
return
}
@ -79,7 +79,7 @@ const Content = {
}
},
driver(func, args, callback) {
driver(func, args) {
return new Promise((resolve, reject) => {
chrome.runtime.sendMessage(
{
@ -106,6 +106,7 @@ const Content = {
script.onload = () => {
const onMessage = ({ data }) => {
console.log(data)
if (!data.wappalyzer || !data.wappalyzer.js) {
return
}

@ -190,7 +190,14 @@ const Popup = {
}
document.querySelector('.empty').classList.add('empty--hidden')
document.querySelector('.detections').classList.remove('detections--hidden')
const el = document.querySelector('.detections')
el.classList.remove('detections--hidden')
while (el.firstChild) {
el.removeChild(detections.lastChild)
}
const pinnedCategory = await getOption('pinnedCategory')

Loading…
Cancel
Save