FEATURE: Allow embedded view to include a header (#20150)

This commits adds the ability to add a header to the embedded comments
view. One use case for this is to allow `postMessage` communication
between the comments iframe and the parent frame, for example, when
toggling the theme of the parent webpage.
This commit is contained in:
Penar Musaraj
2023-02-06 11:10:50 -05:00
committed by GitHub
parent 9e1fcb2a79
commit a86112fc25
6 changed files with 45 additions and 3 deletions

View File

@@ -337,7 +337,7 @@ class ThemeField < ActiveRecord::Base
end
def self.html_fields
@html_fields ||= %w[body_tag head_tag header footer after_header]
@html_fields ||= %w[body_tag head_tag header footer after_header embedded_header]
end
def self.scss_fields