Skip to content

Commit 605a683

Browse files
committed
chore: improve dev shell
1 parent f421191 commit 605a683

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/app-backend-core/src/hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function installHook (target, isIframe = false) {
3535

3636
let iframeChecks = 0
3737
function injectToIframes () {
38-
const iframes = document.querySelectorAll<HTMLIFrameElement>('iframe')
38+
const iframes = document.querySelectorAll<HTMLIFrameElement>('iframe:not([data-vue-devtools-ignore])')
3939
for (const iframe of iframes) {
4040
injectIframeHook(iframe)
4141
}

packages/shell-dev-vue2/public/target.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<div id="app"></div>
99
<div id="shadow"></div>
1010
<iframe src="/target-iframe.html" width="100%"></iframe>
11+
<script src="target/hook.js"></script>
1112
<script src="target/target.js"></script>
1213
</body>
1314
</html>

packages/shell-host/src/DevIframe.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export default defineComponent({
116116
ref="iframe"
117117
name="target"
118118
class="flex-1 border-none"
119+
data-vue-devtools-ignore
119120
:src="src"
120121
@load="onLoad"
121122
/>

0 commit comments

Comments
 (0)