mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
added types to sortablejs
This commit is contained in:
+1
-4
@@ -2,8 +2,7 @@
|
|||||||
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';
|
||||||
// @ts-ignore
|
import Sortable from 'sortablejs';
|
||||||
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';
|
||||||
@@ -1044,8 +1043,6 @@ export function OpenMenuOptions() {
|
|||||||
result1.then(open, onError);
|
result1.then(open, onError);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
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), {
|
||||||
draggable: '.draggable',
|
draggable: '.draggable',
|
||||||
|
|||||||
Reference in New Issue
Block a user