sortable works now but no type declarations

This commit is contained in:
Crazypersonalph
2023-12-04 22:40:43 +08:00
parent 508c0c1812
commit 213b101a22
+3 -2
View File
@@ -2,7 +2,8 @@
import browser from 'webextension-polyfill'; import browser from 'webextension-polyfill';
import { animate, spring, stagger } from 'motion'; import { animate, spring, stagger } from 'motion';
import Color from 'color'; 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 ShortcutLinks from './seqta/content/links.json';
import MenuitemSVGKey from './seqta/content/MenuItemSVGKey.json'; import MenuitemSVGKey from './seqta/content/MenuItemSVGKey.json';
@@ -1043,7 +1044,7 @@ export function OpenMenuOptions() {
result1.then(open, onError); result1.then(open, onError);
try { try {
Sortable.mount(new Sortable.AutoScroll()); Sortable.mount(new AutoScroll());
var el = document.querySelector('#menu > ul'); var el = document.querySelector('#menu > ul');
var sortable = Sortable.create((el as HTMLElement), { var sortable = Sortable.create((el as HTMLElement), {