Skip to content

Commit

Permalink
fix: pass the full options message to mobile bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
GlugovGrGlib committed Jun 26, 2024
1 parent ea45958 commit 0a7a536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/static/js/courseware/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a7a536

Please sign in to comment.