From 26fe4b46e67e23199c14904eae9a8bdacd6f599f Mon Sep 17 00:00:00 2001 From: Brendan Date: Wed, 26 Jun 2024 13:12:24 -0400 Subject: [PATCH] Account for situations in Wagtail 6+ where chooserUrls are not in the window object --- wagtailvideos/wagtail_hooks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wagtailvideos/wagtail_hooks.py b/wagtailvideos/wagtail_hooks.py index 8a52d75..4878a46 100644 --- a/wagtailvideos/wagtail_hooks.py +++ b/wagtailvideos/wagtail_hooks.py @@ -53,7 +53,12 @@ def editor_js(): return format_html( """ """, reverse('wagtailvideos_chooser:choose')