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

Side by Side Diff: background.js

Issue 6141186662203392: Issue 1814 - Use ext.showOptions() on the first-run page (Closed)
Patch Set: Created Jan. 15, 2015, 12:57 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
« no previous file with comments | « no previous file | ext/background.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 }; 156 };
157 157
158 modules.info = { 158 modules.info = {
159 platform: "gecko", 159 platform: "gecko",
160 platformVersion: "34.0", 160 platformVersion: "34.0",
161 application: "firefox", 161 application: "firefox",
162 applicationVersion: "34.0" 162 applicationVersion: "34.0"
163 }; 163 };
164 updateFromURL(modules.info); 164 updateFromURL(modules.info);
165 165
166 global.openOptions = function()
167 {
168 window.open("http://example.com/options.html", "_blank");
169 };
170
171 global.Services = { 166 global.Services = {
172 vc: { 167 vc: {
173 compare: function(v1, v2) 168 compare: function(v1, v2)
174 { 169 {
175 return parseFloat(v1) - parseFloat(v2); 170 return parseFloat(v1) - parseFloat(v2);
176 } 171 }
177 } 172 }
178 }; 173 };
179 174
180 var issues = {seenDataCorruption: false, filterlistsReinitialized: false}; 175 var issues = {seenDataCorruption: false, filterlistsReinitialized: false};
181 updateFromURL(issues); 176 updateFromURL(issues);
182 global.seenDataCorruption = issues.seenDataCorruption; 177 global.seenDataCorruption = issues.seenDataCorruption;
183 global.filterlistsReinitialized = issues.filterlistsReinitialized; 178 global.filterlistsReinitialized = issues.filterlistsReinitialized;
184 })(this); 179 })(this);
OLDNEW
« no previous file with comments | « no previous file | ext/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld