You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/05/23 19:25:59 UTC
[incubator-annotator] branch master updated: Refresh demo anchoring
on selection change
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
The following commit(s) were added to refs/heads/master by this push:
new 55c0e2f Refresh demo anchoring on selection change
55c0e2f is described below
commit 55c0e2f11bf81c626178b047bb1b0c606abfcf77
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 23 15:25:41 2019 -0400
Refresh demo anchoring on selection change
---
demo/index.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/demo/index.js b/demo/index.js
index 73648b3..319b54d 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -61,6 +61,7 @@ async function onSelectionChange() {
const descriptor = await describeRange({ range, context: selectableRange });
const nextFragment = fragment.stringify(descriptor);
window.history.replaceState(descriptor, null, `#${nextFragment}`);
+ refresh();
}
function isWithinNode(range, node) {