Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified code style #63

Merged
merged 79 commits into from
Sep 4, 2016
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
30c6e64
Replace !=/== with !==/=== + add brackets
tomasko126 Jun 22, 2016
98dcacd
Remove added extra space after negative comparison
tomasko126 Jun 22, 2016
7221964
CSS: 0px should be declared as 0 only
tomasko126 Jun 22, 2016
0f37cfe
Revert "CSS: 0px should be declared as 0 only"
tomasko126 Jun 22, 2016
ba97961
CSS: 0px should be declared as 0 only - #2 attempt
tomasko126 Jun 22, 2016
463cb48
Codacy code style fixes
tomasko126 Jun 25, 2016
0652e4a
Changing vendor-prefixed CSS rules to unprefixed rules
tomasko126 Jun 25, 2016
f973562
Remove duplicate CSS rules + vendor prefixes
tomasko126 Jun 25, 2016
3812b4b
Fix Codacy's compatibility issues
tomasko126 Jun 25, 2016
c017d74
Remove unneded images, 4 spaces-everywhere, Codacy fixes
tomasko126 Jun 25, 2016
1119576
Delete trailing commas
tomasko126 Jun 25, 2016
090e7c5
Enforce curly brackets after conditions
tomasko126 Jun 25, 2016
b28c100
Replace '' with ""
tomasko126 Jun 26, 2016
7f3a3ad
Enforce curly brackets
tomasko126 Jun 26, 2016
2807157
Add semicolons
tomasko126 Jun 26, 2016
f8f39eb
Enforce semicolons
tomasko126 Jun 26, 2016
f5ad270
Fix running blanket.js
tomasko126 Jun 26, 2016
920fd38
Fix some tests
tomasko126 Jun 26, 2016
b0e5535
Fix accessing settings by unit tests, fixed undefined functions
tomasko126 Jun 27, 2016
f870015
Fixed access to custom filters
tomasko126 Jun 27, 2016
cc4dc9a
Update to QUnit 2.0
tomasko126 Jun 27, 2016
fcf9b6e
Make all tests passing
tomasko126 Jun 28, 2016
d727270
Adjusted a comment
tomasko126 Jun 29, 2016
bdc7495
Updated blanket.js library, minor fixes
tomasko126 Jun 29, 2016
b03b5af
Test unit-testing with BrowserStack
tomasko126 Jun 30, 2016
a86b48c
Use paranthesis while calling print
tomasko126 Jun 30, 2016
6f903b1
Use os.environ when accessing Travis variables
tomasko126 Jun 30, 2016
d74de02
Debug os.environ
tomasko126 Jun 30, 2016
933a8be
Don't remove tools folder while running unit tests
tomasko126 Jun 30, 2016
fec74e2
Don't raise an exception when unit tests fail, exit 1 instead
tomasko126 Jun 30, 2016
b5d2bca
Use corrent syntax for exiting
tomasko126 Jun 30, 2016
28f4a96
Make test not failing
tomasko126 Jun 30, 2016
8eda470
Import sys in make_release.py script
tomasko126 Jun 30, 2016
0282f3b
Remove wanted unit test fail
tomasko126 Jun 30, 2016
16c20cb
Enforce curly brace conventions
tomasko126 Jul 10, 2016
bc87aaf
Enforce semicolon use
tomasko126 Jul 10, 2016
36ff376
Fix various style bugs
tomasko126 Jul 10, 2016
e499306
Fix codacy issues in declarativewebrequest.js
tomasko126 Jul 13, 2016
7e6375c
More Codacy fixes for declarativewebrequest.js
tomasko126 Jul 13, 2016
47258a6
Fix Codacy issues for ytchannel.js
tomasko126 Jul 13, 2016
74e3189
Fix Codacy issues in checkupdates.js
tomasko126 Jul 13, 2016
3593f40
Fix issues in filteroptions.js
tomasko126 Jul 13, 2016
2300aff
Fix Codacy issues in ytchannel.js
tomasko126 Jul 13, 2016
48e46a8
Fix Codacy issues
tomasko126 Jul 13, 2016
e69bf54
Fix Codacy issues
tomasko126 Jul 13, 2016
853a3b8
Fix Codacy issues
tomasko126 Jul 13, 2016
633f6f9
Resolve some Codacy issues
tomasko126 Jul 13, 2016
fb3260c
Fix contentscript.js Codacy issues
tomasko126 Jul 13, 2016
31b1a78
Fix Codacy issues in customize.js
tomasko126 Jul 13, 2016
a695b5f
Fix Codacy issues in clickwatcher.js file
tomasko126 Jul 13, 2016
847dff6
Fix Codacy issues in top_open_whitelist_ui.js
tomasko126 Jul 16, 2016
7094934
Fix Codacy issues in filters.js
tomasko126 Jul 16, 2016
b42fe19
Fix remaining issues in filters.js
tomasko126 Jul 16, 2016
3d5b175
Fixed Codacy issues in channels.js
tomasko126 Jul 16, 2016
9d7a00f
Fix Codacy issues in filtertypes.js
tomasko126 Jul 16, 2016
e028534
Don't leak username and failure in BrowserStack testing
tomasko126 Jul 16, 2016
a20c54e
Fix typo introduced in 9d7a00f59906005a0694fd0d5c8b81de0bf5bd7c
tomasko126 Jul 16, 2016
7037888
Resolve Codacy issues in resourceblock.js and some in adreport.js
tomasko126 Jul 17, 2016
db6853a
Fix some Codacy issues
tomasko126 Jul 21, 2016
27da8d2
Fix minor Codacy issues
tomasko126 Jul 21, 2016
696737d
Minor Codacy fixes
tomasko126 Jul 21, 2016
553640b
Fix minor style issues
tomasko126 Jul 21, 2016
2788821
Fix Codacy issues in adreport.js
tomasko126 Jul 22, 2016
bb53f2b
Fix minor issues in adreport.js
tomasko126 Jul 22, 2016
07566b8
Fix final issues (hopefully)
tomasko126 Jul 22, 2016
1c13410
Remove unwanted semicolons
tomasko126 Jul 22, 2016
203d218
Merge branch 'master' into selenium-testing
tomasko126 Jul 22, 2016
14a6e4d
Add comments explaining changes to the test.js file
tomasko126 Jul 22, 2016
9762160
Refactor release script
tomasko126 Jul 22, 2016
f2e4058
Run Selenium tests and add an unique extension ID only when building …
tomasko126 Jul 22, 2016
9634c68
Update Readme.md
tomasko126 Jul 23, 2016
de242e5
Merge branch 'master' into selenium-testing
tomasko126 Jul 23, 2016
bf59b5b
Change function expressions to named functions
tomasko126 Aug 30, 2016
b086296
Fix style issues
tomasko126 Aug 30, 2016
0d8c865
Fix Codacy issues
tomasko126 Aug 30, 2016
da0ccbc
Fix undefined 'that' variable
tomasko126 Sep 2, 2016
414003a
Don't check for 404 text, when detecting a filter lists how-to link
tomasko126 Sep 2, 2016
2b2bcfe
Remove pragma URLs
tomasko126 Sep 2, 2016
9d4eb70
Run .py scripts only when they haven't been imported as a modules
tomasko126 Sep 2, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove added extra space after negative comparison
Signed-off-by: Tomáš Taro <tomas@getadblock.com>
tomasko126 committed Jun 22, 2016
commit 98dcacdceba37d8f4ada81819a48553d5abb48d2
2 changes: 1 addition & 1 deletion catblock/channels.js
Original file line number Diff line number Diff line change
@@ -281,7 +281,7 @@ FlickrChannel.prototype = {
attribution_url: 'http://www.flickr.com/photos/' +
(photo.owner || photos.owner) + '/' + photo.id
});
if (typeof listing.url !== "undefined") {
if (typeof listing.url !== "undefined") {
result.push(listing);
}
}
8 changes: 4 additions & 4 deletions catblock/contentscript.js
Original file line number Diff line number Diff line change
@@ -352,12 +352,12 @@ var picinjection = {
$(".picinjection-infocard:visible").hide();
});
}
if (typeof jQuery !== "undefined") {
if (typeof jQuery !== "undefined") {
after_jquery_is_available();
}
else {
chrome.runtime.sendMessage(
{ command:"inject_jquery", allFrames: (window !== window.top) },
{ command:"inject_jquery", allFrames: (window !== window.top) },
after_jquery_is_available
);
}
@@ -577,8 +577,8 @@ var picinjection = {
if (!SAFARI) {
// Augment blocked ads on Blink-based browsers => images/subdocuments/objects
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.command !== "purge-elements" ||
request.frameUrl !== document.location.href)
if (request.command !== "purge-elements" ||
request.frameUrl !== document.location.href)
return;

var ads = document.querySelectorAll(request.selector);
2 changes: 1 addition & 1 deletion catblock/options/catblock.js
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ BGcall("getGuide", function(guide) {
}
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.command !== 'channel-updated')
if (request.command !== 'channel-updated')
return;
var channelUI = $("#chan-" + request.id);
if ($('#fill-photos-btn-' + request.id).is(":visible"))
4 changes: 2 additions & 2 deletions catblock/tests.js
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@
[ [o1, o2], [o2, o1] ].forEach(function(objects) {
var a = objects[0], b = objects[1];
for (property in a)
if (a[property] !== b[property])
if (a[property] !== b[property])
fail = true;
});
if (fail) {
var o1_s = JSON.stringify(o1);
var o2_s = JSON.stringify(o2);
if (o1_s !== o2_s)
if (o1_s !== o2_s)
console.log(o1_s + " != " + o2_s);
}
}
4 changes: 2 additions & 2 deletions filtering/declarativewebrequest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DeclarativeWebRequest = (function() {
if (!safari ||
!safari.extension ||
(typeof safari.extension.setContentBlocker !== 'function')) {
(typeof safari.extension.setContentBlocker !== 'function')) {
return;
}
const HTML_PREFIX = "^https?://.*";
@@ -18,7 +18,7 @@ DeclarativeWebRequest = (function() {
var addDomainsToRule = function(filter, rule) {
var domains = getDomains(filter);
//since the global / ALL domain is included in the 'included' array, check for something other than undefined in the zero element
if (domains.included.length > 0 && domains.included[0] !== undefined) {
if (domains.included.length > 0 && domains.included[0] !== undefined) {
rule.trigger["if-domain"] = domains.included;
} else if (domains.excluded.length > 0) {
rule.trigger["unless-domain"] = domains.excluded;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did this function go?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 76 :)

4 changes: 2 additions & 2 deletions filtering/domainset.js
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ DomainSet.prototype = {
var newHas = {};
newHas[DomainSet.ALL] = this.has[DomainSet.ALL];
for (d in this.has)
if (this.has[d] !== this._computedHas(DomainSet._parentDomainOf(d)))
if (this.has[d] !== this._computedHas(DomainSet._parentDomainOf(d)))
newHas[d] = this.has[d];
this.has = newHas;
},
@@ -94,7 +94,7 @@ DomainSet.prototype = {
// E.g. if |this| DomainSet is the set of all domains other than a, then 'b'
// will yield true, and both 'a' and 'sub.a' will yield false.
_computedHas: function(domain) {
if (this.has[domain] !== undefined)
if (this.has[domain] !== undefined)
return this.has[domain];
else
return this._computedHas(DomainSet._parentDomainOf(domain));
4 changes: 2 additions & 2 deletions filtering/filternormalizer.js
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ var FilterNormalizer = {
var newfilter = FilterNormalizer.normalizeLine(lines[i]);
if (newfilter)
result.push(newfilter);
else if (newfilter !== false)
else if (newfilter !== false)
ignoredFilterCount++;
else if (keepComments)
result.push(lines[i]);
@@ -66,7 +66,7 @@ var FilterNormalizer = {
filter = FilterNormalizer._old_style_hiding_to_new(filter);
log('Converted ' + oldFilter + ' to ' + filter);
}
if (typeof userExcludedFilterArray !== 'undefined' &&
if (typeof userExcludedFilterArray !== 'undefined' &&
userExcludedFilterArray &&
userExcludedFilterArray.length > 0 &&
userExcludedFilterArray.indexOf(filter) >= 0) {
4 changes: 2 additions & 2 deletions filtering/filterset.js
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ FilterSet.fromFilters = function(data) {
var key = (d === DomainSet.ALL ? 'global' : d);
setDefault(result.items, key, []).push(filter);
}
else if (d !== DomainSet.ALL)
else if (d !== DomainSet.ALL)
setDefault(result.exclude, d, {})[filter.id] = true;
}
}
@@ -126,7 +126,7 @@ BlockingFilterSet = function(patternFilterSet, whitelistFilterSet) {
BlockingFilterSet.checkThirdParty = function(domain1, domain2) {
var match1 = parseUri.secondLevelDomainOnly(domain1, false);
var match2 = parseUri.secondLevelDomainOnly(domain2, false);
return (match1 !== match2);
return (match1 !== match2);
}

BlockingFilterSet.prototype = {
12 changes: 6 additions & 6 deletions filtering/myfilters.js
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ MyFilters.prototype._updateFieldsFromOriginalOptions = function() {

sub.initialUrl = sub.initialUrl || official.url;
sub.url = sub.url || official.url;
if (sub.initialUrl !== official.url) {
if (sub.initialUrl !== official.url) {
// The official URL was changed. Use it. In case of a redirect, this
// doesn't happen as only sub.url is changed, not sub.initialUrl.
sub.initialUrl = official.url;
@@ -66,7 +66,7 @@ MyFilters.prototype._updateFieldsFromOriginalOptions = function() {
sub.safariJSON_URL = official.safariJSON_URL;
}

var isMissingRequiredList = (sub.requiresList !== official.requiresList);
var isMissingRequiredList = (sub.requiresList !== official.requiresList);
if (official.requiresList && isMissingRequiredList && sub.subscribed) {
// A required list was added. Make sure main list subscribers get it.
if (this._subscriptions[official.requiresList])
@@ -130,7 +130,7 @@ MyFilters.prototype._updateDefaultSubscriptions = function() {
// If not, update entry in subscriptions.
var new_id = is_user_submitted ? ("url:" + sub_to_check.url) : update_id;

if(new_id !== id) {
if(new_id !== id) {
renameSubscription(id, new_id);
}
}
@@ -351,7 +351,7 @@ MyFilters.prototype.changeSubscription = function(id, subData, forceFetch) {
if (id === "malware") {
// Apply all changes from subData
for (var property in subData) {
if (subData[property] !== undefined) {
if (subData[property] !== undefined) {
this._subscriptions[id][property] = subData[property];
}
}
@@ -400,7 +400,7 @@ MyFilters.prototype.changeSubscription = function(id, subData, forceFetch) {

// Apply all changes from subData
for (var property in subData)
if (subData[property] !== undefined)
if (subData[property] !== undefined)
this._subscriptions[id][property] = subData[property];

// Check if the required list is a well known list, but only if it is changed
@@ -548,7 +548,7 @@ MyFilters.prototype._updateSubscriptionText = function(id, text, xhr) {
if (!Filter.isComment(checkLines[i]))
continue;
var match = checkLines[i].match(redirectRegex);
if (match && match[1] !== this._subscriptions[id].url) {
if (match && match[1] !== this._subscriptions[id].url) {
this._subscriptions[id].url = match[1]; //assuming the URL is always correct
// Force an update. Even if our refetch below fails we'll have to
// fetch the new URL in the future until it succeeds.
2 changes: 1 addition & 1 deletion js/adblock_start_safari.js
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ var beforeLoadHandler = function(event) {
url: relativeToAbsoluteUrl(event.url),
elType: elType,
referrer: document.referrer,
isPopup: window.opener !== null,
isPopup: window.opener !== null,
frameDomain: document.location.hostname,
frameInfo: chrome._tabInfo.gatherFrameInfo()
};
14 changes: 7 additions & 7 deletions js/background.js
Original file line number Diff line number Diff line change
@@ -209,7 +209,7 @@ if (!SAFARI) {
// frames on the tab with ID tabId. Returns undefined if tabId and frameId
// are not being tracked.
get: function(tabId, frameId) {
if (frameId !== undefined) {
if (frameId !== undefined) {
return (frameData[tabId] || {})[frameId];
}
return frameData[tabId];
@@ -279,7 +279,7 @@ if (!SAFARI) {
return;
}
var data = frameData.get(tabId, frameId);
if (data !== undefined) {
if (data !== undefined) {
data.resources[elType + ":|:" + url + ":|:" + frameDomain] = null;
}
},
@@ -306,7 +306,7 @@ if (!SAFARI) {
var reqType = details.type;

var top_frame = frameData.get(tabId, 0);
var sub_frame = (details.frameId !== 0 ? frameData.get(tabId, details.frameId) : null);
var sub_frame = (details.frameId !== 0 ? frameData.get(tabId, details.frameId) : null);

// If top frame is whitelisted, don't process anything
if (top_frame.whitelisted) {
@@ -334,7 +334,7 @@ if (!SAFARI) {

// Issue 7178
if (blocked && frameDomain === "www.hulu.com") {
if (frameData.get(tabId, 0).domain !== "www.hulu.com"
if (frameData.get(tabId, 0).domain !== "www.hulu.com"
&& /ads\.hulu\.com/.test(details.url)) { // good enough
blocked = false;
}
@@ -407,7 +407,7 @@ if (!SAFARI) {
// and track these updates in the frameData object.
var tabData = frameData.get(details.tabId, details.frameId);
if (tabData &&
tabData.url !== details.url) {
tabData.url !== details.url) {
details.type = "main_frame";
details.url = getUnicodeUrl(details.url);
frameData.track(details);
@@ -713,7 +713,7 @@ var page_is_unblockable = function(url) {
return true;
} else {
var scheme = parseUri(url).protocol;
return (scheme !== "http:" && scheme !== "https:" && scheme !== "feed:");
return (scheme !== "http:" && scheme !== "https:" && scheme !== "feed:");
}
}

@@ -1207,7 +1207,7 @@ var get_l10n_data = (SAFARI ? chrome.i18n._getL10nData : undefined);
(function() {
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.command !== "call") {
if (request.command !== "call") {
return; // not for us
}
if ((sender.tab === undefined) || (sender.tab === null)) {
12 changes: 6 additions & 6 deletions js/bandaids.js
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ var before_ready_bandaids = function() {
// This function is outside the normal 'bandaids' processing
// so that it works correctly
(function() {
if ((typeof SAFARI) !== 'undefined' &&
if ((typeof SAFARI) !== 'undefined' &&
SAFARI &&
document.domain === "www.youtube.com") {
//continue
@@ -88,7 +88,7 @@ var before_ready_bandaids = function() {
var flashvars = newPlayer.getAttribute("flashvars");
if (flashvars) {
var newFlashvars = rewriteFlashvars(flashvars);
if (flashvars !== newFlashvars) {
if (flashvars !== newFlashvars) {
newPlayer.setAttribute("flashvars", newFlashvars);
flashvarsChanged = true;
}
@@ -99,7 +99,7 @@ var before_ready_bandaids = function() {
var value = param.getAttribute("value");
if (value) {
var newValue = rewriteFlashvars(value);
if (value !== newValue) {
if (value !== newValue) {
param.setAttribute("value", newValue);
flashvarsChanged = true;
}
@@ -143,7 +143,7 @@ var before_ready_bandaids = function() {
return ytplayer;
},
set: function(rawYtplayer) {
if (!rawYtplayer || typeof rawYtplayer !== "object") {
if (!rawYtplayer || typeof rawYtplayer !== "object") {
ytplayer = rawYtplayer;
return;
}
@@ -156,7 +156,7 @@ var before_ready_bandaids = function() {
return config;
},
set: function(rawConfig) {
if (!rawConfig || typeof rawConfig !== "object") {
if (!rawConfig || typeof rawConfig !== "object") {
config = rawConfig;
return;
}
@@ -169,7 +169,7 @@ var before_ready_bandaids = function() {
return args;
},
set: function(rawArgs) {
if (!rawArgs || typeof rawArgs !== "object") {
if (!rawArgs || typeof rawArgs !== "object") {
args = rawArgs;
return;
}
2 changes: 1 addition & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ var BGcall = function() {
var logging = function(enabled) {
if (enabled) {
var log = function() {
if (VERBOSE_DEBUG || arguments[0] !== "[DEBUG]") { // comment out for verbosity
if (VERBOSE_DEBUG || arguments[0] !== "[DEBUG]") { // comment out for verbosity
console.log.apply(console, arguments);
}
};
10 changes: 5 additions & 5 deletions js/port.js
Original file line number Diff line number Diff line change
@@ -25,12 +25,12 @@ if (typeof SAFARI === "undefined") {
// Safari bug: window.safari undefined in iframes with JS src in them.
// Must get it from an ancestor.
var w = window;
while (w.safari === undefined && w !== window.top) {
while (w.safari === undefined && w !== window.top) {
w = w.parent;
}
window.safari = w.safari;
}
return (typeof safari !== "undefined");
return (typeof safari !== "undefined");
})();

if (SAFARI) {
@@ -155,7 +155,7 @@ if (typeof SAFARI === "undefined") {
// Listen for a response. When we get it, call the callback and stop
// listening.
var listener = listenFor("response", function(messageEvent) {
if (messageEvent.message.callbackToken !== callbackToken) {
if (messageEvent.message.callbackToken !== callbackToken) {
return;
}
// Must wrap this call in a timeout to avoid crash, per Safari team
@@ -240,7 +240,7 @@ if (typeof SAFARI === "undefined") {
// Called by the global page.
notice: function(tab, info) {
// Clean up closed tabs, to avoid memory bloat.
this._tabs = this._tabs.filter(function(t) { return t.browserWindow !== null; });
this._tabs = this._tabs.filter(function(t) { return t.browserWindow !== null; });

if (tab.id === undefined) {
// New tab
@@ -274,7 +274,7 @@ if (typeof SAFARI === "undefined") {
var xhr = new XMLHttpRequest();
xhr.open("GET", chrome.runtime.getURL(file), false);
xhr.onreadystatechange = function() {
if (this.readyState === 4 && this.responseText !== "") {
if (this.readyState === 4 && this.responseText !== "") {
fn(this.responseText);
}
};
8 changes: 4 additions & 4 deletions js/safari_bg.js
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ var frameData = (function() {
url = getUnicodeUrl(url);
domain = getUnicodeDomain(domain);

var shouldTrack = !tracker || tracker.url !== url;
var shouldTrack = !tracker || tracker.url !== url;
if (shouldTrack) {
frameData[tabId] = {
resources: {},
@@ -57,8 +57,8 @@ var frameData = (function() {
return;
}
var data = this.get(tabId);
if (data !== undefined &&
data.resources !== undefined) {
if (data !== undefined &&
data.resources !== undefined) {
data.resources[elType + ":|:" + url] = null;
}
},
@@ -89,7 +89,7 @@ safari.application.addEventListener("message", function(messageEvent) {
return;
}

if (messageEvent.name !== "canLoad") {
if (messageEvent.name !== "canLoad") {
return;
}

2 changes: 1 addition & 1 deletion options/customize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.command !== "filters_updated")
if (request.command !== "filters_updated")
return;
if ($("#txtFiltersAdvanced").prop("disabled") === false)
return;
Loading