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

Side by Side Diff: updates.js

Issue 29592569: Issue 5943 - Implement Updates Page for Adblock Plus extension (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Addressed seventh round of feedback Created Jan. 12, 2018, 11:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« skin/updates.css ('K') | « updates.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 /* globals getDocLink, setLinks, E */
19
20 "use strict";
21
22 (function()
23 {
24 function onDOMLoaded()
25 {
26 let optionsPageLink = document.querySelector("#options-page-news > a");
27 optionsPageLink.addEventListener("click", () =>
28 {
29 browser.runtime.sendMessage(
30 {
31 type: "app.open",
32 what: "options"
33 }
34 );
35 });
36 getDocLink("adblock_browser_ios_store", (url) =>
37 {
38 E("adblock-browser-ios-store").href = url;
39 });
40 getDocLink("adblock_browser_android_store", (url) =>
41 {
42 E("adblock-browser-android-store").href = url;
43 });
44 getDocLink("adblock_browser_website", (url) =>
45 {
46 setLinks("adblock-browser-text", url);
47 });
48 }
49 document.addEventListener("DOMContentLoaded", onDOMLoaded, false);
50 }());
OLDNEW
« skin/updates.css ('K') | « updates.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld