Skip to content

Commit

Permalink
HTML cell output: respect integrity attribute for script elements loa…
Browse files Browse the repository at this point in the history
…ded from src attribute
  • Loading branch information
fonsp committed Oct 30, 2023
1 parent a1f17ae commit c698e1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/components/CellOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ const execute_scripttags = async ({ root_node, script_nodes, previous_results_ma

if (script_el == undefined) {
script_el = document.createElement("script")
script_el.integrity = node.integrity
script_el.src = node.src
script_el.type = node.type === "module" ? "module" : "text/javascript"
// @ts-ignore
Expand Down

0 comments on commit c698e1c

Please sign in to comment.