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

Unified Diff: firstRun.js

Issue 29445590: Issue 5255 - Advanced tab (HTML, strings and functionality) (Closed)
Patch Set: Removed unnecessary function call Created July 12, 2017, 3:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common.js ('k') | locale/en-US/new-options.json » ('j') | new-options.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firstRun.js
===================================================================
--- a/firstRun.js
+++ b/firstRun.js
@@ -112,31 +112,6 @@
});
}
- function setLinks(id, ...args)
- {
- let element = E(id);
- if (!element)
- {
- return;
- }
-
- let links = element.getElementsByTagName("a");
-
- for (let i = 0; i < links.length; i++)
- {
- if (typeof args[i] == "string")
- {
- links[i].href = args[i];
- links[i].setAttribute("target", "_blank");
- }
- else if (typeof args[i] == "function")
- {
- links[i].href = "javascript:void(0);";
- links[i].addEventListener("click", args[i], false);
- }
- }
- }
-
function openFilters()
{
ext.backgroundPage.sendMessage({type: "app.open", what: "options"});
« no previous file with comments | « common.js ('k') | locale/en-US/new-options.json » ('j') | new-options.js » ('J')

Powered by Google App Engine
This is Rietveld