Adjust to ensure previews load isolated code (#1547)

Ensure previews use the plugin script from the tree instead
of the common one for latest and version releases
This commit is contained in:
Darragh Bailey
2022-08-15 22:42:26 +01:00
committed by GitHub
parent 86fc5f05d0
commit 4fc3c8481d
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
<script src="{% asset "js/site_constants.js" @path %}"></script>
<div id="plugin-version-menu" class="site-footer"></div>
{%- assign basePath = "" %}
{%- if site.baseurl.size != 0 %}
{%- if site.plugin_script_base_path %}
{%- assign basePath = site.plugin_script_base_path %}
{%- elsif site.baseurl.size != 0 %}
{%- assign basePath = "/vagrant-libvirt" %}
{%- endif %}
<script src="{{ basePath }}/assets/js/plugin_versions_menu.js"></script>