diff --git a/background.html b/background.html index 7055a62..ed8a780 100644 --- a/background.html +++ b/background.html @@ -14,16 +14,14 @@ message: 'isEtherPad' }, function( response ) { - console.log(response) + if ( response ) { if ( localStorage.getItem('pads') ) { var pads = JSON.parse( localStorage.getItem('pads') ); - console.log(localStorage.getItem('pads').indexOf("http://typewith.me/html5-learning-concussion")) - - if ( localStorage.getItem('pads').indexOf("http://typewith.me/html5-learning-concussion") != -1) { + if ( localStorage.getItem('pads').indexOf( curTab.url ) == -1) { pads.push( {title: curTab.title, url: curTab.url } ); diff --git a/chrome-browser-action.html b/chrome-browser-action.html index a8bccf5..652536c 100644 --- a/chrome-browser-action.html +++ b/chrome-browser-action.html @@ -1,24 +1,30 @@ - +