[Pkg-mozext-commits] [adblock-plus] 48/74: Issue 2376 - parseFilters function in mockup returns wrong object

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 12:07:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 4fd51186575acc2a8402806655fdc8e3bb108848
Author: Manvel Saroyan <manvel at adblockplus.org>
Date:   Thu Jul 16 12:14:22 2015 +0200

    Issue 2376 - parseFilters function in mockup returns wrong object
---
 background.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/background.js b/background.js
index 5155e9a..14ff284 100644
--- a/background.js
+++ b/background.js
@@ -175,8 +175,10 @@
     {
       if (params.filterError)
         return {errors: ["Invalid filter"]};
-      return {filters: 
-              text.split("\n").map(modules.filterClasses.Filter.fromText)};
+      return {
+        filters: text.split("\n").map(modules.filterClasses.Filter.fromText),
+        errors: []
+      };
     }
   };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list