can only communicate with mobileclient using json

This commit is contained in:
Laura Klünder 2018-12-17 00:17:21 +01:00
parent 61967b0e4e
commit 65f511a6d9
4 changed files with 5 additions and 5 deletions

View file

@ -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>