neon-jungle / wagtail-videos

Videos for Wagtail CMS, including transcoding
BSD 3-Clause "New" or "Revised" License
65 stars 57 forks source link

Account for situations in Wagtail 6+ where chooserUrls are not in the window object #129

Closed BrendanBerkley closed 3 months ago

BrendanBerkley commented 3 months ago

Without this fix, you'll get an error in the console: Uncaught TypeError: window.chooserUrls is undefined

This probably isn't the ideal solution, but it seems to work and shouldn't disrupt prior versions. The 6.1 release notes document the kind of changes that should be made long-term.

crgwbr commented 3 months ago

Seconding this—not an ideal solution, but it fixes the Wagtail >=6 admin for now without dropping support for Wagtail 5.2.