H
H
Harconnen2020-08-27 09:46:07
JavaScript
Harconnen, 2020-08-27 09:46:07

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

2 answer(s)
T
Tim, 2020-08-27
@Tim-A-2020

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'))

H
Harconnen, 2020-08-27
@Harconnen

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
5f475cf3f338d654374926.png
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 question

Ask a Question

731 491 924 answers to any question