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 **/