Skip to content

Commit

Permalink
Simplify annotation contrller (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Sep 11, 2023
1 parent ba32d61 commit 74b60dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sitemedia/js/controllers/annotation_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ export default class extends Controller {
const { config, canvasURL, manifestId, annotationContainer } = settings;
const anno = Annotorious(viewer, { disableDeleteKey: true });

// get toolbar element
const toolbarContainer = this.element.querySelector(".tahqiq-toolbar");

// Initialize the AnnotationServerStorage plugin
const annotationServerConfig = {
annotationEndpoint: config.server_url,
Expand All @@ -117,7 +114,7 @@ export default class extends Controller {
anno,
storagePlugin,
annotationContainer,
toolbarContainer,
this.element.querySelector(".tahqiq-toolbar"), // toolbar container fieldset
config.text_direction,
config.tiny_api_key
);
Expand Down

0 comments on commit 74b60dd

Please sign in to comment.