Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
924f1a5
commit c54f9d8
Showing
3 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
function SetupNotification() { | ||
var link = JSON.parse(localStorage['HN.Link0']); | ||
var storyLink = document.getElementById("StoryLink"); | ||
storyLink.href = link.Link; | ||
storyLink.innerText = link.Title; | ||
storyLink.addEventListener("click", openLinkFront); | ||
|
||
var commentsLink = document.getElementById("CommentsLink"); | ||
commentsLink.href = link.CommentsLink; | ||
commentsLink.addEventListener("click", openLinkFront); | ||
|
||
setTimeout(function() { | ||
window.close(); | ||
}, 10000); | ||
} | ||
|
||
document.addEventListener('DOMContentLoaded', function () { | ||
SetupNotification(); | ||
}); |