From 213b101a22fc1a0e731fcf37b9cc21505df51a64 Mon Sep 17 00:00:00 2001 From: Crazypersonalph <93847055+Crazypersonalph@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:40:43 +0800 Subject: [PATCH] sortable works now but no type declarations --- src/SEQTA.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index a9ba2512..470eec6e 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -2,7 +2,8 @@ import browser from 'webextension-polyfill'; import { animate, spring, stagger } from 'motion'; import Color from 'color'; -import Sortable from 'sortablejs'; +// @ts-ignore +import Sortable, { AutoScroll } from 'sortablejs/modular/sortable.core.esm'; import ShortcutLinks from './seqta/content/links.json'; import MenuitemSVGKey from './seqta/content/MenuItemSVGKey.json'; @@ -1043,7 +1044,7 @@ export function OpenMenuOptions() { result1.then(open, onError); try { - Sortable.mount(new Sortable.AutoScroll()); + Sortable.mount(new AutoScroll()); var el = document.querySelector('#menu > ul'); var sortable = Sortable.create((el as HTMLElement), {