fix: remove error frame HTML for non-dev mode (#2133)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
c4e09d1cef
commit
96644f5e22
+3
-2
@@ -171,9 +171,10 @@ export async function getErrorOverlay(
|
||||
url: string,
|
||||
): Promise<{ title: string; codeFrame: boolean; stack: string }> {
|
||||
const doc = await server.getHtml(url);
|
||||
const iframe = doc.querySelector(
|
||||
const iframe = doc.querySelector<HTMLIFrameElement>(
|
||||
"#fresh-error-overlay",
|
||||
) as HTMLIFrameElement;
|
||||
);
|
||||
assert(iframe, "Missing fresh error overlay");
|
||||
|
||||
const doc2 = await server.getHtml(iframe.src);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user