diff --git a/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs b/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs index abe735b..083d268 100644 --- a/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs +++ b/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs @@ -31,6 +31,25 @@ public class IndexHtmlTransformerTests Assert.Equal(Script, IndexHtmlTransformer.Inject(Script)); } + [Fact] + public void Inject_LeavesScriptsThatMentionABodyTagAlone() + { + const string Script = "(self.webpackChunk=self.webpackChunk||[]).push([[17244],{t:\"