We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 519f6c0 + cbb1769 commit 6f377efCopy full SHA for 6f377ef
1 file changed
htdocs/js/PGProblemEditor/pgproblemeditor.js
@@ -242,11 +242,13 @@
242
}
243
if (request_object.pgCode === data.result_data.tidiedPGCode) {
244
showMessage('There were no changes to the code.', true);
245
+ if (!(renderArea.firstChild instanceof HTMLIFrameElement)) render();
246
} else {
247
if (webworkConfig?.pgCodeMirror) webworkConfig.pgCodeMirror.source = data.result_data.tidiedPGCode;
248
else document.getElementById('problemContents').value = data.result_data.tidiedPGCode;
249
saveTempFile();
250
showMessage('Successfully perltidied code.', true);
251
252
253
})
254
.catch((err) => showMessage(`Error: ${err?.message ?? err}`));
0 commit comments