File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
django_unicorn/templates/unicorn Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{% load static %}
22
3- {{ MORPHER_OPTIONS|json_script:"morpher-options" }}
3+ {{ MORPHER_OPTIONS|json_script:"unicorn:settings: morpher-options" }}
44
55{% if MINIFIED %}
66< script src ="{% static 'unicorn/js/unicorn.min.js' %} "> </ script >
77< script >
88 var url = "{% url 'django_unicorn:message' %}" ;
9- var morpherOptions = JSON . parse ( document . getElementById ( "morpher-options" ) . textContent ) ;
9+ var morpherOptions = JSON . parse ( document . getElementById ( "unicorn:settings: morpher-options" ) . textContent ) ;
1010 var morpher = getMorpher ( "{{ MORPHER }}" , morpherOptions ) ;
1111 Unicorn . init ( url , "{{ CSRF_HEADER_NAME }}" , "{{ CSRF_COOKIE_NAME }}" , morpher ) ;
1212</ script >
1818 window . Unicorn = Unicorn ;
1919
2020 var url = "{% url 'django_unicorn:message' %}" ;
21- var morpherOptions = JSON . parse ( document . getElementById ( "morpher-options" ) . textContent ) ;
21+ var morpherOptions = JSON . parse ( document . getElementById ( "unicorn:settings: morpher-options" ) . textContent ) ;
2222 var morpher = getMorpher ( "{{ MORPHER }}" , morpherOptions ) ;
2323 Unicorn . init ( url , "{{ CSRF_HEADER_NAME }}" , "{{ CSRF_COOKIE_NAME }}" , morpher ) ;
2424</ script >
You can’t perform that action at this time.
0 commit comments