Skip to content

Commit

Permalink
worker: switch to library
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Oct 31, 2023
1 parent e1c89f9 commit 9f474e3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 128 deletions.
21 changes: 17 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"vue-router": "^3.6.5",
"vue-virtual-scroller": "1.1.2",
"vue2-leaflet": "^2.7.1",
"webdav": "^5.3.0"
"webdav": "^5.3.0",
"webworker-typed": "^1.0.4"
},
"engines": {
"node": ">=18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/frame/XImgCache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { API } from '@services/API';
import { onDOMLoaded } from '@services/utils';
import { importWorker } from '@services/worker';
import { importWorker } from 'webworker-typed';
import type XImgWorker from './XImgWorker';

// Global web worker to fetch images
Expand Down
2 changes: 1 addition & 1 deletion src/components/frame/XImgWorker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CacheExpiration } from 'workbox-expiration';
import { exportWorker } from '@services/worker';
import { exportWorker } from 'webworker-typed';

declare var self: ServiceWorkerGlobalScope;

Expand Down
121 changes: 0 additions & 121 deletions src/services/worker.ts

This file was deleted.

0 comments on commit 9f474e3

Please sign in to comment.