From aabd318db642891b94badf8b893d1669a0bf638d Mon Sep 17 00:00:00 2001 From: Daniel Weck Date: Tue, 15 Nov 2016 14:48:04 +0000 Subject: [PATCH] "annotations" plugin was renamed "highlights", see https://github.com/readium/SDKLauncher-iOS/issues/91#issuecomment-260583666 --- .../assets/readium-shared-js/host_app_feedback.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SDKLauncher-Android/app/src/main/assets/readium-shared-js/host_app_feedback.js b/SDKLauncher-Android/app/src/main/assets/readium-shared-js/host_app_feedback.js index 56f9715c..6026f6ec 100644 --- a/SDKLauncher-Android/app/src/main/assets/readium-shared-js/host_app_feedback.js +++ b/SDKLauncher-Android/app/src/main/assets/readium-shared-js/host_app_feedback.js @@ -208,16 +208,16 @@ require(['readium_shared_js/views/reader_view'], function (ReaderView) ReadiumSDK.on(ReadiumSDK.Events.PLUGINS_LOADED, function(reader) { // readium built-in (should have been require()'d outside this scope) - console.log(reader.plugins.annotations); - if (reader.plugins.annotations) { - reader.plugins.annotations.initialize({annotationCSSUrl: opts.annotationCSSUrl}); - reader.plugins.annotations.on("annotationClicked", function(type, idref, cfi, id) { + console.log(reader.plugins.highlights); + if (reader.plugins.highlights) { + reader.plugins.highlights.initialize({annotationCSSUrl: opts.annotationCSSUrl}); + reader.plugins.highlights.on("annotationClicked", function(type, idref, cfi, id) { console.log("ANNOTATION CLICK: " + id); - reader.plugins.annotations.removeHighlight(id); + reader.plugins.highlights.removeHighlight(id); }); - reader.plugins.annotations.on("textSelectionEvent", function() { + reader.plugins.highlights.on("textSelectionEvent", function() { console.log("ANNOTATION SELECT"); - reader.plugins.annotations.addSelectionHighlight(Math.floor((Math.random()*1000000)), "highlight"); + reader.plugins.highlights.addSelectionHighlight(Math.floor((Math.random()*1000000)), "highlight"); }); }