msic - problems

This commit is contained in:
alexadam 2016-07-28 16:21:31 +03:00
parent 8147350ce8
commit aee4df3cc6
4 changed files with 36 additions and 24 deletions

View file

@ -26,11 +26,11 @@ function saveEbookPages(pages) {
}
document.getElementById('savePage').onclick = function() {
localStorage.removeItem('ebook');
chrome.tabs.query({
currentWindow: true,
active: true
}, function(tab) {
console.log('aiai');
chrome.tabs.sendMessage(
tab[0].id,
{
@ -47,6 +47,7 @@ document.getElementById('savePage').onclick = function() {
};
document.getElementById('saveSelection').onclick = function() {
localStorage.removeItem('ebook');
chrome.tabs.query({
currentWindow: true,
active: true