mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
sortable works now but no type declarations
This commit is contained in:
+3
-2
@@ -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), {
|
||||||
|
|||||||
Reference in New Issue
Block a user