Skip to content

Commit 931cd68

Browse files
committed
Use source JS file in non-production mode #850
1 parent 7b5c13e commit 931cd68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

webcompat/templates/cssfixme.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
<label>
1414
<input type="checkbox" name="compact">Compact output (whitespace only after closing brace)</label>
1515
<pre id="fixedcss"></pre>
16-
<script src="/js/cssfixme.min.js"></script>
16+
{%- block extrascripts -%}
17+
{%- if config.PRODUCTION or config.DEVELOPMENT -%}
18+
<script src="{{ url_for('static', filename='js/cssfixme.min.js')|bust_cache }}"></script>
19+
{%- else -%}
20+
<script src="{{ url_for('static', filename='js/lib/css-fixme.js') }}"></script>
21+
{%- endif -%}
22+
{%- endblock %}
1723
</main>
1824
</div>
1925
{% endblock %}

0 commit comments

Comments
 (0)