Skip to content

Commit 216d864

Browse files
committed
Web IDE: Fix 'InvalidCharacterError: String contains an invalid character'.
1 parent 57e185e commit 216d864

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/ide_injections.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ function inject_microalg_editor_in(elt_id, config) {
221221
var processing_id = elt_id + '-processing';
222222
var src = '';
223223
var blockly_src = '';
224+
config.src = config.src.replace(//g, "'");
224225
var config_64 = btoa(JSON.stringify(config));
225226
// According to config.localStorage, load source code (if any) from local
226227
// storage in the `src` var.

0 commit comments

Comments
 (0)