Fix linting issues

main
Elbert Alias 7 years ago
parent acd2fcb3f2
commit cbca9c3e7a

@ -174,7 +174,7 @@
video_assets: opt_video_assets, video_assets: opt_video_assets,
assets: opt_assets, assets: opt_assets,
version: '3', version: '3',
mrev: '4aeaa5a-c', mrev: 'fe20291-c',
msgNum: this.msgNum, msgNum: this.msgNum,
timestamp: new Date().getTime(), timestamp: new Date().getTime(),
pageVis: document.visibilityState, pageVis: document.visibilityState,
@ -859,7 +859,7 @@
let _pageTags; let _pageTags;
const INIT_MS_BW_SEARCHES = 2000; const INIT_MS_BW_SEARCHES = 2000;
const PAGE_TAG_RE = new RegExp('gpt|oascentral'); const PAGE_TAG_RE = new RegExp('gpt|oascentral');
const POST_MSG_ID = '1519242200-10756-12873-1462-13403'; const POST_MSG_ID = '1532387537-31575-24732-11173-32339';
const AD_SERVER_RE = new RegExp('^(google_ads_iframe|oas_frame|atwAdFrame)'); const AD_SERVER_RE = new RegExp('^(google_ads_iframe|oas_frame|atwAdFrame)');
function getPageTags(doc) { function getPageTags(doc) {

@ -1,4 +1,5 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict';
(function () { (function () {
function isChrome() { function isChrome() {
return (typeof chrome !== 'undefined' return (typeof chrome !== 'undefined'
@ -791,3 +792,4 @@
return true; return true;
}); });
}()); }());
},{}]},{},[1]);

@ -291,12 +291,12 @@ class Wappalyzer {
let userAgent; let userAgent;
robotsTxt.split('\n').forEach((line) => { robotsTxt.split('\n').forEach((line) => {
let matches = /^User-agent:\s*(.+)$/i.exec(line); let matches = /^User-agent:\s*(.+)$/i.exec(line.trim());
if (matches) { if (matches) {
userAgent = matches[1].toLowerCase(); userAgent = matches[1].toLowerCase();
} else if (userAgent === '*' || userAgent === 'wappalyzer') { } else if (userAgent === '*' || userAgent === 'wappalyzer') {
matches = /^Disallow:\s*(.+)$/i.exec(line); matches = /^Disallow:\s*(.+)$/i.exec(line.trim());
if (matches) { if (matches) {
disallow.push(matches[1]); disallow.push(matches[1]);
@ -394,12 +394,7 @@ class Wappalyzer {
resolveImplies(apps, url) { resolveImplies(apps, url) {
let checkImplies = true; let checkImplies = true;
// Implied applications const resolve = (appName) => {
// Run several passes as implied apps may imply other apps
while (checkImplies) {
checkImplies = false;
Object.keys(apps).forEach((appName) => {
const app = apps[appName]; const app = apps[appName];
if (app && app.props.implies) { if (app && app.props.implies) {
@ -426,7 +421,14 @@ class Wappalyzer {
}); });
}); });
} }
}); };
// Implied applications
// Run several passes as implied apps may imply other apps
while (checkImplies) {
checkImplies = false;
Object.keys(apps).forEach(resolve);
} }
} }