Yes, i only changed registerForPushNotifications() to showHttpPrompt() and it worked.
I think it was a problem in cache or other browser data which i can’t delete. I installed firefox and it worked correctly. I think it will also work in chrome – i’ll see it soon if subscribers growth will continue. (you can test here https://bmwguide.ru/ – i’ve moved it from test zone to main site).
I also implemented this script using Google Tag Manager to reduce third-party code in template.