8000 fix(devtools): infinite recursion on keyboard event · romhml/compodium@aed8cb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit aed8cb6

Browse files
committed
fix(devtools): infinite recursion on keyboard event
1 parent 3f7d866 commit aed8cb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/devtools/app/app.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useAsyncData('__compodium-fetch-colors', async () => {
1414
})
1515
1616
onMounted(() => {
17-
if (window.parent) {
17+
if (window.parent && !window.parent.location.pathname.includes('/__compodium__/devtools')) {
1818
onKeyStroke(true, (e) => {
1919
window.parent.dispatchEvent(new KeyboardEvent('keydown', e))
2020
}, { eventName: 'keydown' })

0 commit comments

Comments
 (0)
0