Skip to content

Commit

Permalink
resume_geogebra_applet: only set base64 if it's nonempty
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed May 4, 2022
1 parent fa56394 commit 12c803d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geogebra.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,9 @@ Numbas.addExtension('geogebra',['jme','math','jme-display'],function(extension)
q.signals.on('partsResumed',function() {
applet.promise.then(function(d) {
setTimeout(function() {
d.app.setBase64(base64);
if(base64) {
d.app.setBase64(base64);
}
for(var path in applet.used_to_mark_parts) {
paths[path] = true;
}
Expand Down

0 comments on commit 12c803d

Please sign in to comment.