diff --git a/scripts/draggable.js b/scripts/draggable.js index 5dd3c52..8874fe2 100644 --- a/scripts/draggable.js +++ b/scripts/draggable.js @@ -109,9 +109,9 @@ class DraggableItem extends HTMLElement { return this.#value; } - set value (value) { + set value (value) { this.#value = value; - } + } } customElements.define("draggable-container", DraggableContainer); diff --git a/scripts/index.js b/scripts/index.js index be9823f..47519db 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -332,8 +332,8 @@ async function populateInstances () { criteria = (item, query) => { // lower is better const { score, CIGAR } = global.wfAlign(query, item, penalties, true); - const alignment = global.DecodeCIGAR(CIGAR) - return { score: score / item.length, alignment: alignment }; + const alignment = global.DecodeCIGAR(CIGAR); + return { score: score / item.length, alignment }; }; } sortInstances(criteria, searchQuery);