perf: add isolate events

This commit is contained in:
molvqingtai 2024-09-28 18:15:18 +08:00
parent 684304db9b
commit 8fd5f04ecd

View file

@ -32,6 +32,7 @@ export default defineContentScript({
anchor: 'body', anchor: 'body',
append: 'last', append: 'last',
mode: 'open', mode: 'open',
isolateEvents: ['keyup', 'keydown', 'keypress'],
onMount: (container) => { onMount: (container) => {
const app = createElement('<div id="app"></div>') const app = createElement('<div id="app"></div>')
container.append(app) container.append(app)