[bitbar] Default OBA color to black

pull/28/head
Alpha Chen 9 years ago
parent a300edcf5a
commit 22061804d3

@ -20,7 +20,7 @@ doc = REXML::Document.new(html)
status = doc.elements['//td[contains(@class, "arrivalsStatusEntry")]']
minutes = status.elements['.//span'].text
color = COLOR_MAP[status.attributes['class'].split(/\s+/).last.to_sym]
color = COLOR_MAP.fetch(status.attributes['class'].split(/\s+/).last.to_sym, :black)
times = doc.elements.to_a('//div[@class="arrivalsTimePanel"]')
puts "#{minutes} | color=#{color}"

Loading…
Cancel
Save