diff --git a/index.js b/index.js index e635af0..6097822 100644 --- a/index.js +++ b/index.js @@ -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'; }