mirror of
https://github.com/alexadam/save-as-ebook.git
synced 2025-09-10 17:34:47 +00:00
add option to save changes in chapter editor
This commit is contained in:
parent
165949e1a3
commit
44c63373e1
6 changed files with 92 additions and 67 deletions
|
@ -1,3 +1,19 @@
|
|||
function getEbookTitle(callback) {
|
||||
chrome.runtime.sendMessage({
|
||||
type: "get title"
|
||||
}, function(response) {
|
||||
callback(response.title);
|
||||
});
|
||||
}
|
||||
|
||||
function saveEbookTitle(title) {
|
||||
chrome.runtime.sendMessage({
|
||||
type: "set title",
|
||||
title: title
|
||||
}, function(response) {
|
||||
});
|
||||
}
|
||||
|
||||
function getEbookPages(callback) {
|
||||
chrome.runtime.sendMessage({
|
||||
type: "get"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue