Skip to content

Commit

Permalink
fix: remove spaces and EOL from nonce attr (#24644)
Browse files Browse the repository at this point in the history
(cherry picked from commit b809815)
  • Loading branch information
dpgaspar authored and michael-s-molina committed Jul 12, 2023
1 parent b81ee82 commit a15e809
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superset/templates/superset/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
specific language governing permissions and limitations
under the License.
#}
{% macro get_nonce() %}
{% if csp_nonce is defined %}
{{ csp_nonce() }}
{% endif %}
{% endmacro %}
{% macro get_nonce() -%}
{%- if csp_nonce is defined -%}
{{- csp_nonce() -}}
{%- endif %}
{%- endmacro %}

0 comments on commit a15e809

Please sign in to comment.