Skip to content

Commit

Permalink
Fix broken image preview #12
Browse files Browse the repository at this point in the history
  • Loading branch information
marteinn committed Feb 22, 2025
1 parent 3dc6c02 commit a01c9a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Improve developement instructions (@marteinn)

### Fixed
- Fix broken image preview #12 (@marteinn)
- Drop deprecated version from docker-compose (@marteinn)
- Upgrade postgres image for development (@marteinn)
- Upgrade development version of python to 3.10 (@marteinn)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var ChangeTracker = function (elem) {
};

const fetchImage = function (id, cb) {
const baseAdminUrl = document.querySelector("a.logo").getAttribute('href');
const baseAdminUrl = window.wmp_base_home_url;
const xhr = new XMLHttpRequest();
let val;
xhr.onreadystatechange = function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
window.google_title_fields = "{{ title_fallback_fields }}";
window.google_description_fields = "{{ description_fallback_fields }}";
{% endif %}

window.wmp_base_home_url = "{% url 'wagtailadmin_home' %}";
</script>

<div class="meta-preview{% if is_single %} meta-preview--single{% endif %}">
Expand Down

0 comments on commit a01c9a8

Please sign in to comment.