add option to save changes in chapter editor

This commit is contained in:
alexadam 2017-01-30 23:13:47 +02:00
parent 165949e1a3
commit 44c63373e1
6 changed files with 92 additions and 67 deletions

View file

@ -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"