Window.prismic.endpoint is deprecated

Hi,

I follow this document to setup preview in my ruby web application - https://prismic.io/docs/ruby/beyond-the-api/in-website-preview.

The Prismic toolbar do not appear and I saw below message in console.

What should I follow between the console log and Prismic document?

1 Like

I have replaced old script with the one from Browser pop-up and the preview is working.

I think you should update the Javascript in dashboard /settings/previews/

2 Likes

@renaud it looks like the docs still aren’t up to date with this deprecation warning. It’s very confusing, particularly since it shows a link to get the ‘complete documentation’, which isn’t complete, and therefore not helpful.

Hey Alan, welcome to the Prismic forum.

Thank you very much for making us aware of this. I’ll make sure this section of the documentation is clearer.

For now, you need to check the preview script in your repo for new=true and if you don’t see it, just ask us to activate the New toolbar for you here in the forum: