mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-12 02:14:40 +00:00
msic - problems
This commit is contained in:
parent
8147350ce8
commit
aee4df3cc6
4 changed files with 36 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue