From c512ed32dac0fd00c7b7e833ddd842ac5d35f330 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Mon, 1 Jun 2020 20:20:36 +0200 Subject: [PATCH] Added readOnly config opt for WebAnnotation --- src/WebAnnotation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 75f7066..e8c6cfb 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -2,8 +2,9 @@ import uuid from 'uuid/v1'; export default class WebAnnotation { - constructor(annotation) { + constructor(annotation, opts) { this.underlying = annotation; + this.readOnly = opts?.readOnly; } /** For convenience - creates an empty web annotation **/