Skip to content

Commit

Permalink
Skip activating json scripts in ErrorRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
jfuchs committed Nov 30, 2023
1 parent ac6df0f commit 9869c5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/drive/error_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class ErrorRenderer extends Renderer<HTMLBodyElement, PageSnapshot> {

activateScriptElements() {
for (const replaceableElement of this.scriptElements) {
if (replaceableElement.type === "application/json") continue
const parentNode = replaceableElement.parentNode
if (parentNode) {
const element = activateScriptElement(replaceableElement)
Expand Down

0 comments on commit 9869c5a

Please sign in to comment.