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.
1 parent 7cb6ee9 commit 2cba2e3Copy full SHA for 2cba2e3
webgl/resources/lessons-helper.js
@@ -65,7 +65,9 @@
65
// eslint-disable-line
66
}
67
try {
68
- document.body.className = 'iframe';
+ if (document.body) {
69
+ document.body.className = 'iframe';
70
+ }
71
} catch (e) {
72
73
@@ -334,7 +336,7 @@
334
336
super(url);
335
337
let listener;
338
this.onmessage = function(e) {
- if (!e || !e.data || !e.data.type === '___editor___') {
339
+ if (!e || !e.data || e.data.type !== '___editor___') {
340
if (listener) {
341
listener(e);
342
0 commit comments