can only communicate with mobileclient using json
This commit is contained in:
parent
61967b0e4e
commit
65f511a6d9
4 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@
|
|||
if (window.mobileclient) {
|
||||
var $body = $('body');
|
||||
if ($body.is('[data-user-data]')) {
|
||||
mobileclient.set_user_data(JSON.parse($body.attr('data-user-data')));
|
||||
mobileclient.set_user_data($body.attr('data-user-data'));
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue