lib/html/source/javascripts/electron_extensions.coffee in flammarion-0.2.1 vs lib/html/source/javascripts/electron_extensions.coffee in flammarion-0.3.0
- old
+ new
@@ -1,12 +1,12 @@
-#= require websocket.coffee
-if window.$remote
- $.extend WSClient.prototype.actions,
- snapshot: (data) ->
- window.$remote.getCurrentWindow().capturePage (image) =>
- @__parent.send({
- id:data.id
- action:'callback'
- source:'snapshot'
- data: image.toPNG()
- original_msg:data
- })
+#= require websocket.coffee
+if window.$remote
+ $.extend WSClient.prototype.actions,
+ snapshot: (data) ->
+ window.$remote.getCurrentWindow().capturePage (image) =>
+ @__parent.send({
+ id:data.id
+ action:'callback'
+ source:'snapshot'
+ data: image.toPNG()
+ original_msg:data
+ })