Skip to content

Commit

Permalink
feat: 1.集成webworker,为性能优化做准备
Browse files Browse the repository at this point in the history
  • Loading branch information
JuckZ committed Apr 30, 2023
1 parent 67206c4 commit 646a998
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 41 deletions.
102 changes: 62 additions & 40 deletions pnpm-lock.yaml

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

4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ import { EditorUtil, EditorUtils } from '@/utils/editor';
import t from '@/i18n';
import { usePomodoroStore, useSystemStore } from '@/stores';
import { UpdateModal } from '@/ui/modal/UpdateModal';
import { initWorker } from '@/web-worker';

initWorker();

export const OpenUrl = ref('https://baidu.com');
const media = window.matchMedia('(prefers-color-scheme: dark)');

class Interactor extends PerWindowComponent {
interact = this.createInteractor();
plugin = this.use(AwesomeBrainManagerPlugin);
Expand Down
Loading

0 comments on commit 646a998

Please sign in to comment.