lib/flammarion/revelator.rb in flammarion-0.1.5 vs lib/flammarion/revelator.rb in flammarion-0.1.6

- old
+ new

@@ -70,10 +70,10 @@ Process.detach(spawn(chrome_path, %[--app=#{resource}?path=#{@window_id}&port=#{server.port}&title="#{options[:title] || "Flammarion%20Engraving"}"])) end browser :electron do |options| if which('electron') then - Process.detach(spawn("electron #{File.dirname(File.absolute_path(__FILE__))}/../../electron '#{options[:url]}'")) + Process.detach(spawn("electron #{File.dirname(File.absolute_path(__FILE__))}/../../electron '#{options[:url]}' #{options[:width]} #{options[:height]}")) return true end false end