From 4c7c9603321b3c72c1469b7b42a73385d501d956 Mon Sep 17 00:00:00 2001 From: Alexander Cherry Date: Fri, 7 Nov 2025 12:33:07 -0500 Subject: [PATCH 1/2] fix inline style live_dashboard csp --- lib/flame_on/component.ex | 2 ++ lib/flame_on/component.html.heex | 4 ++-- lib/flame_on/dashboard_page.ex | 2 +- lib/flame_on/svg.ex | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/flame_on/component.ex b/lib/flame_on/component.ex index 294a659..460b8ae 100644 --- a/lib/flame_on/component.ex +++ b/lib/flame_on/component.ex @@ -55,6 +55,8 @@ defmodule FlameOn.Component do socket end + socket = assign(socket, :csp_nonces, assigns[:csp_nonces]) + {:ok, socket} end diff --git a/lib/flame_on/component.html.heex b/lib/flame_on/component.html.heex index a22c798..a994a55 100644 --- a/lib/flame_on/component.html.heex +++ b/lib/flame_on/component.html.heex @@ -1,5 +1,5 @@
-