mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
added hypothesis text, checks for styles
This commit is contained in:
parent
61fa786325
commit
6a8f9d31b8
6 changed files with 22 additions and 11 deletions
10
hooks/extensions/hypothesis.js
Normal file
10
hooks/extensions/hypothesis.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
EPUBJS.Hooks.register("beforeChapterDisplay").hypothesis = function(callback, chapter){
|
||||
|
||||
|
||||
EPUBJS.core.addScript("https://hypothes.is/app/embed.js", null, chapter.doc.head);
|
||||
|
||||
if(callback) callback();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue