Custom values in pushcrewConfig.

Posted in General by Di Elshin Mon Jul 29 2019 15:37:04 GMT+0000 (Coordinated Universal Time)·Viewed 780 times

Hola! 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.
Markdown is allowed