Add screenshots to UI. Still need to implement resizing.

This commit is contained in:
Simo Kinnunen
2014-05-20 11:34:39 +09:00
parent 48726669dc
commit 254b2dc7a3
5 changed files with 49 additions and 19 deletions

View File

@@ -47,10 +47,10 @@ module.exports = syrup.serial()
router.on(wire.ScreenCaptureMessage, function(channel) {
var reply = wireutil.reply(options.serial)
plugin.capture()
.then(function(url) {
.then(function(file) {
push.send([
channel
, reply.okay(url)
, reply.okay('success', file)
])
})
.catch(function(err) {