Get embed code for pad and code

This commit is contained in:
yflory
2017-09-06 10:56:27 +02:00
parent 0bb6698399
commit 3ca9f41290
7 changed files with 49 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ define([
return Math.random().toString(16).replace('0.', '') + Math.random().toString(16).replace('0.', '');
};
var create = function (ow, cb) {
var create = function (ow, cb, isSandbox) {
var otherWindow;
var handlers = {};
var queries = {};
@@ -131,7 +131,7 @@ define([
console.log(msg);
}
});
if (window !== window.top) {
if (isSandbox) {
// we're in the sandbox
otherWindow = ow;
cb(chan);