Fix linting issues

main
Elbert Alias 7 years ago
parent acd2fcb3f2
commit cbca9c3e7a

@ -174,7 +174,7 @@
video_assets: opt_video_assets,
assets: opt_assets,
version: '3',
mrev: '4aeaa5a-c',
mrev: 'fe20291-c',
msgNum: this.msgNum,
timestamp: new Date().getTime(),
pageVis: document.visibilityState,
@ -859,7 +859,7 @@
let _pageTags;
const INIT_MS_BW_SEARCHES = 2000;
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)');
function getPageTags(doc) {

@ -1,5 +1,6 @@
(function () {
(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 isChrome() {
return (typeof chrome !== 'undefined'
&& window.navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9\.]+)/));
@ -790,4 +791,5 @@
}
return true;
});
}());
}());
},{}]},{},[1]);

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