|
|
@ -135,10 +135,12 @@ browser.webRequest.onCompleted.addListener(request => {
|
|
|
|
if ( request.responseHeaders ) {
|
|
|
|
if ( request.responseHeaders ) {
|
|
|
|
const url = wappalyzer.parseUrl(request.url);
|
|
|
|
const url = wappalyzer.parseUrl(request.url);
|
|
|
|
|
|
|
|
|
|
|
|
browser.tabs.query({ url: [ url.canonical ] })
|
|
|
|
browser.tabs.query({ url: [ url.href ] })
|
|
|
|
.then(tabs => {
|
|
|
|
.then(tabs => {
|
|
|
|
const tab = tabs[0] || null;
|
|
|
|
const tab = tabs[0] || null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log({ url: url.canonical, tab });
|
|
|
|
|
|
|
|
|
|
|
|
if ( tab ) {
|
|
|
|
if ( tab ) {
|
|
|
|
request.responseHeaders.forEach(header => {
|
|
|
|
request.responseHeaders.forEach(header => {
|
|
|
|
const name = header.name.toLowerCase();
|
|
|
|
const name = header.name.toLowerCase();
|
|
|
|