Ask a Question
Back to All

Custom values in pushcrewConfig.


I'm trying to connect pushcrew js api to our webasyst framework.

I ran into a problem when pushcrewConfig.swPath and pushcrewConfig.manifestUrl are hard coded from the root of the site. I do not have the opportunity to place the file pushcrew-sw.js in the root (the Framework does not provide such an opportunity).

In this case, when calling js api in the DOM tree, there is a link element with the attribute rel='manifest'.

How can I fully use js api, without the possibility of placing your files in the root?

The ideal solution would be to be able to fully work with js api if only account_id and api_token are present.

-- Di.