3
0
Fork 0

Lint part 2

10.0
hparfr 2017-09-11 11:49:24 +00:00
parent 7303c02cac
commit 0489434479
2 changed files with 3 additions and 3 deletions

View File

@ -9,11 +9,11 @@ addEventListener("connect", function(ee) {
var port = ee.ports[0];
con.push(port);
port.onmessage = function (e) { //addEventListener doesnt seams to work well
port.onmessage = function (e) {
var newCtx = e.data;
if (lastCtx && newCtx !== lastCtx) {
con.map(function (eport) {
con.forEach(function (eport) {
eport.postMessage({type: "newCtx", "newCtx": newCtx, "lastCtx": lastCtx});
});
}