Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "corsica", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Ephemeral screens for the masses.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -298,3 +298,3 @@ console.log('Waiting for connection to server...'); | ||
logsEl.insertBefore(li, logsEl.firstChild); | ||
while (logsEl.childNodes.length > 10) { | ||
while (logsEl.childNodes.length > 100) { | ||
logsEl.removeChild(logsEl.lastChild); | ||
@@ -301,0 +301,0 @@ } |
@@ -178,2 +178,12 @@ | ||
window.addEventListener("message", function (e) { | ||
var data = e.data; | ||
if (data.corsica) { | ||
if (data.message) { | ||
var args = data.args || {}; | ||
args.screen = args.screen || config.name; | ||
sendMessage(data.message, args); | ||
} | ||
} | ||
}); | ||
@@ -180,0 +190,0 @@ function requestFullscreen(elem) { |
Sorry, the diff of this file is not supported yet
116635
1625