Answer the question
In order to leave comments, you need to log in
How is the get parameter (params.get) considered in the VK application?
Help, can anyone come across.
There is an application in VK line https://vk.com/app7533744?ra=11111
Works in iframe
It is necessary to read the parameter 'ra'
In the VK documentation, I found only params.get('vk_ref') - but that's not it.
Answer the question
In order to leave comments, you need to log in
Everything is working. If you need to get the ra parameter, then write this parameter to the get method
const params = new URLSearchParams(window.location.search)
console.log(params.get('ra'))
In a normal application, this is how it works for me.
It doesn’t work like that in VK, now I checked the
console.log(window.location.search) code
Here is what it gives out
There is no “ra” parameter I
ca
n’t use the window.top.location.search command - the browser policy gives an error
VK after the lattice https://vk.com/app7533744#test
But again, the value is not visible in the console
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question