aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/preload.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/preload.ex')
-rw-r--r--lib/pleroma/web/preload.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/preload.ex b/lib/pleroma/web/preload.ex
index c2211c597..f13932b89 100644
--- a/lib/pleroma/web/preload.ex
+++ b/lib/pleroma/web/preload.ex
@@ -22,6 +22,8 @@ defmodule Pleroma.Web.Preload do
end
def build_script_tag(content) do
+ content = Base.encode64(content)
+
HTML.Tag.content_tag(:script, HTML.raw(content),
id: "initial-results",
type: "application/json"