Remove edge code (#1959)

* Remove edge code in driver.js

* Remove edge code in popup.js
main
Camille Barneaud 7 years ago committed by Elbert Alias
parent be78de5aca
commit 4b9bc8a8e8

@ -118,13 +118,9 @@ var callback = tabs => {
})
};
try {
browser.tabs.query({})
.then(callback)
.catch(error => wappalyzer.log(error, 'driver', 'error'));
} catch ( e ) {
browser.tabs.query({}, callback);
}
browser.tabs.query({})
.then(callback)
.catch(error => wappalyzer.log(error, 'driver', 'error'));
// Capture response headers
browser.webRequest.onCompleted.addListener(request => {

@ -11,15 +11,9 @@ var func = tabs => {
});
};
try {
// Chrome, Firefox
browser.tabs.query({ active: true, currentWindow: true })
.then(func)
.catch(console.error);
} catch ( e ) {
// Edge
browser.tabs.query({ active: true, currentWindow: true }, func);
}
browser.tabs.query({ active: true, currentWindow: true })
.then(func)
.catch(console.error);
function replaceDomWhenReady(dom) {
if ( /complete|interactive|loaded/.test(document.readyState) ) {

Loading…
Cancel
Save