More work

This commit is contained in:
Emupedia
2020-03-01 05:26:33 +02:00
parent f926703b00
commit d71e128511

View File

@@ -35,7 +35,8 @@
var $iframe = $('#' + this.iframe_id);
if ($iframe.length) {
$iframe.get(0).contentWindow.postMessage({cmd: cmd, data: data}, '*');
var cdata = JSON.parse(JSON.stringify(data));
$iframe.get(0).contentWindow.postMessage({cmd: cmd, data: cdata}, '*');
}
} else {
this.buffer.push([cmd, data]);