Window.strapi.flags being undefined

I decided to upgrade to 4.25 and the problem disappeared.