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