diff --git a/src/public/app/services/resizer.ts b/src/public/app/services/resizer.ts index d6e828047..164f82eae 100644 --- a/src/public/app/services/resizer.ts +++ b/src/public/app/services/resizer.ts @@ -1,4 +1,5 @@ import options from "./options.js"; +import Split from "split.js" let leftInstance: ReturnType | null; let rightInstance: ReturnType | null; diff --git a/src/public/app/types.d.ts b/src/public/app/types.d.ts index 2a11f30e5..39c4e2d6d 100644 --- a/src/public/app/types.d.ts +++ b/src/public/app/types.d.ts @@ -123,13 +123,6 @@ declare global { language: string }); }; - var Split: (selectors: string[], config: { - sizes: [ number, number ]; - gutterSize: number; - onDragEnd: (sizes: [ number, number ]) => void; - }) => { - destroy(); - }; var renderMathInElement: (element: HTMLElement, options: { trust: boolean; }) => void; diff --git a/src/routes/assets.ts b/src/routes/assets.ts index 8c7f298eb..f925a6108 100644 --- a/src/routes/assets.ts +++ b/src/routes/assets.ts @@ -70,8 +70,6 @@ async function register(app: express.Application) { app.use(`/${assetPath}/node_modules/jquery-hotkeys/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/jquery-hotkeys/"))); - app.use(`/${assetPath}/node_modules/split.js/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/split.js/dist/"))); - app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/panzoom/dist/"))); // i18n diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs index 390e5fdf9..6896eeba8 100644 --- a/src/views/desktop.ejs +++ b/src/views/desktop.ejs @@ -44,7 +44,6 @@ -