Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Nov 20, 2016
1 parent 900593a commit da4da4e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ function getCookie(c_name) {
window.onload = function() {
var COOKIE_NAME = 'visited';
var visited = getCookie(COOKIE_NAME).split(',');
console.log('visited', visited);

function upgradeLink(link) {
var slug = link.parentNode.getAttribute('href').replace(/[\.\/]/g, '');
console.log(slug, visited.indexOf(slug));
if (visited.indexOf(slug) !== -1) {
link.className = 'visited';
}
Expand Down

0 comments on commit da4da4e

Please sign in to comment.