Skip to content

Commit f56d743

Browse files
committed
Add a red box
1 parent dcb193c commit f56d743

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

__tests__/html2/middleware/errorBox/simple.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@
2020
</script>
2121
<script crossorigin="anonymous" defer src="/__dist__/webchat-es5.js"></script>
2222
<script crossorigin="anonymous" defer src="/__dist__/botframework-webchat-debug-theme.development.js"></script>
23+
<style type="text/css">
24+
.webchat > .error-box {
25+
border: solid 1px red;
26+
}
27+
</style>
2328
</head>
24-
2529
<body>
2630
<main id="webchat"></main>
2731
<script type="module">
@@ -47,7 +51,7 @@
4751

4852
const errorBox = renderErrorBox({ error: new Error('Hello, World!'), where: 'Artificial' });
4953

50-
return errorBox?.({});
54+
return createElement('div', { className: 'error-box' }, errorBox?.({}));
5155
};
5256

5357
const hasDebugProvider = !new URL(location.href).searchParams.has('no-debug-provider');
45 Bytes
Loading
6 Bytes
Loading

0 commit comments

Comments
 (0)