Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: options.js

Issue 29492577: Noissue - Fix indentation errors for ESLint 4 (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created July 19, 2017, 1:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const toggleSubscription = wrapper({type: "subscriptions.toggle"}, 66 const toggleSubscription = wrapper({type: "subscriptions.toggle"},
67 "url", "keepInstalled"); 67 "url", "keepInstalled");
68 const updateSubscription = wrapper({type: "subscriptions.update"}, "url"); 68 const updateSubscription = wrapper({type: "subscriptions.update"}, "url");
69 const importRawFilters = wrapper({type: "filters.importRaw"}, 69 const importRawFilters = wrapper({type: "filters.importRaw"},
70 "text", "removeExisting"); 70 "text", "removeExisting");
71 const addFilter = wrapper({type: "filters.add"}, "text"); 71 const addFilter = wrapper({type: "filters.add"}, "text");
72 const removeFilter = wrapper({type: "filters.remove"}, "text"); 72 const removeFilter = wrapper({type: "filters.remove"}, "text");
73 73
74 const whitelistedDomainRegexp = /^@@\|\|([^/:]+)\^\$document$/; 74 const whitelistedDomainRegexp = /^@@\|\|([^/:]+)\^\$document$/;
75 const statusMessages = new Map([ 75 const statusMessages = new Map([
76 ["synchronize_invalid_url", 76 ["synchronize_invalid_url",
Manish Jethani 2017/07/19 13:28:37 This is a genuine error.
77 "filters_subscription_lastDownload_invalidURL"], 77 "filters_subscription_lastDownload_invalidURL"],
78 ["synchronize_connection_error", 78 ["synchronize_connection_error",
79 "filters_subscription_lastDownload_connectionError"], 79 "filters_subscription_lastDownload_connectionError"],
80 ["synchronize_invalid_data", 80 ["synchronize_invalid_data",
81 "filters_subscription_lastDownload_invalidData"], 81 "filters_subscription_lastDownload_invalidData"],
82 ["synchronize_checksum_mismatch", 82 ["synchronize_checksum_mismatch",
83 "filters_subscription_lastDownload_checksumMismatch"] 83 "filters_subscription_lastDownload_checksumMismatch"]
84 ]); 84 ]);
85 85
86 let delayedSubscriptionSelection = null; 86 let delayedSubscriptionSelection = null;
87 let acceptableAdsUrl; 87 let acceptableAdsUrl;
88 88
89 // Loads options from localStorage and sets UI elements accordingly 89 // Loads options from localStorage and sets UI elements accordingly
90 function loadOptions() 90 function loadOptions()
91 { 91 {
92 // Set page title to i18n version of "Adblock Plus Options" 92 // Set page title to i18n version of "Adblock Plus Options"
93 document.title = i18n.getMessage("options"); 93 document.title = i18n.getMessage("options");
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 onFilterMessage(message.action, message.args[0]); 729 onFilterMessage(message.action, message.args[0]);
730 break; 730 break;
731 case "prefs.respond": 731 case "prefs.respond":
732 onPrefMessage(message.action, message.args[0]); 732 onPrefMessage(message.action, message.args[0]);
733 break; 733 break;
734 case "subscriptions.respond": 734 case "subscriptions.respond":
735 onSubscriptionMessage(message.action, message.args[0]); 735 onSubscriptionMessage(message.action, message.args[0]);
736 break; 736 break;
737 } 737 }
738 }); 738 });
OLDNEW
« lib/devtools.js ('K') | « lib/whitelisting.js ('k') | qunit/tests/filterValidation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld