Commit 51ac1c65 authored by carlosribas's avatar carlosribas
Browse files

Check request.get_host

parent 866bf52e
......@@ -41,7 +41,7 @@
"hideRnacentral": "true"
}'
/>
{% if context.plugin_installed %}
{% if request.get_host == 'test.rnacentral.org' or request.get_host == 'localhost' %}
<script type="text/javascript" src="{% static "r2dt-web/dist/r2dt-web.js" %}"></script>
{% else %}
<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment