Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
maripo committed Sep 7, 2019
1 parent 40f61f0 commit ea89832
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion extension/pref/word_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1><img src="../img/top_title.png" alt="CustomBlocker for Google Chrome"/></h1>
<ul>
<li><a href="index.html?p=p1"><span
class="custom_filter_localize_prefTitle">Manage Rules</span></a></li>
<li class="selected"><a href="word_group" id="word_group_link"><span
<li class="selected"><a href="word_group.html" id="word_group_link"><span
class="custom_filter_localize_word_group">Word Groups</span></a></li>
<li><a href="help.html" id="help_link"><span
class="custom_filter_localize_help">Help</span></a></li>
Expand Down
3 changes: 0 additions & 3 deletions extension/src/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions ts/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,14 @@ class CustomBlockerUtil {
let noteKey = keyPrefix + note.getAttribute("note_key");
if (localStorage[noteKey]=="true") {
// Already dismissed.
console.log("Hide");
continue;
}
console.log("Show");
note.style.display = "block";
let links = note.getElementsByTagName("a");
for (let j=0; j<links.length; j++) {
let link = links[j];
if (link.className.indexOf("note__dismiss" >= 0)) {
link.addEventListener("click", ()=>{
console.log("Dismiss " + noteKey);
note.style.display = "none";
localStorage[noteKey] = "true";
});
Expand Down

0 comments on commit ea89832

Please sign in to comment.