mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Plaintext image data reading fix
This commit is contained in:
parent
477d10123e
commit
812e139a7c
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -924,7 +924,7 @@ function ParseRawData(data) {
|
||||||
try {
|
try {
|
||||||
currQuestion.I = JSON.parse(currData);
|
currQuestion.I = JSON.parse(currData);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
currQuestion.I = [currData];
|
currQuestion.I = currData.split(',');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ExpectedIdentifier = ['?', '+'];
|
ExpectedIdentifier = ['?', '+'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue