From 0a7a53656851088ebdbbd379f87d89e451c7c757 Mon Sep 17 00:00:00 2001 From: Glib Glugovskiy Date: Wed, 26 Jun 2024 23:41:54 +0300 Subject: [PATCH] fix: pass the full options message to mobile bridge --- lms/static/js/courseware/bridge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/static/js/courseware/bridge.js b/lms/static/js/courseware/bridge.js index 73f8439a16c9..cd1ab8b5dcb2 100644 --- a/lms/static/js/courseware/bridge.js +++ b/lms/static/js/courseware/bridge.js @@ -90,8 +90,8 @@ $.ajax = function (options) { if (options.url && options.url.endsWith("handler/xmodule_handler/problem_check")) { if (options.data) { // Replace spaces with URLEncoded value to ensure correct parsing on the backend - let formattedData = options.data.replace(/\+/g, '%20'); - let jsonMessage = JSON.stringify(formattedData) + options.data = options.data.replace(/\+/g, '%20'); + let jsonMessage = JSON.stringify(options) sendMessageToIOS(jsonMessage) sendMessageToAndroid(jsonMessage)