Skip to content

Commit

Permalink
fix marks example
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatson5 committed Mar 25, 2021
1 parent 5c7f21d commit 46eb851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/marks.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
// Apply a class to selected text
rendition.on("selected", function(cfiRange, contents) {

var m = contents.mark(cfiRange, {'something' : true}, (e) => {
rendition.annotations.mark(cfiRange, {'something' : true}, (e) => {
var bounds = e.target.getBoundingClientRect();
var clientX = e.clientX;

Expand Down

0 comments on commit 46eb851

Please sign in to comment.