S
S
seagull2016-08-23 16:05:57
Classmates
seagull, 2016-08-23 16:05:57

FAPI.UI.getPageInfo not a valid answer?

FAPI.UI.getPageInfo according to the documentation should return a JSON String. https://apiok.ru/wiki/display/api/FAPI.UI.getPageInfo
Returns the string:

{clientWidth: 1280,clientHeight: 390,scrollLeft: 0,scrollTop: 177,offsetLeft: 0,offsetTop: 80,innerHeight: 390,innerWidth: 1280}

The string is not valid JSON. And cannot be read with JSON.parse(); Missing quotes. Valid JSON looks like
{"clientWidth": 1280,"clientHeight": 390,"scrollLeft": 0,"scrollTop": 177,"offsetLeft": 0,"offsetTop": 80,"innerHeight": 390,"innerWidth": 1280}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2016-08-24
@seagull

Yes, there is such a problem, we will fix it soon

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question