Skip to content

Commit

Permalink
Merge pull request #548 from szepeviktor/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
sj26 committed May 17, 2024
2 parents 98cb69f + d055313 commit 9590adb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/javascripts/mailcatcher.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class MailCatcher
addMessage: (message) ->
$("<tr />").attr("data-message-id", message.id.toString())
.append($("<td/>").text(message.sender or "No sender").toggleClass("blank", !message.sender))
.append($("<td/>").text((message.recipients || []).join(", ") or "No receipients").toggleClass("blank", !message.recipients.length))
.append($("<td/>").text((message.recipients || []).join(", ") or "No recipients").toggleClass("blank", !message.recipients.length))
.append($("<td/>").text(message.subject or "No subject").toggleClass("blank", !message.subject))
.append($("<td/>").text(@formatDate(message.created_at)))
.prependTo($("#messages tbody"))
Expand Down
6 changes: 3 additions & 3 deletions lib/mail_catcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def windows?
RbConfig::CONFIG["host_os"].match?(/mswin|mingw/)
end

def browseable?
def browsable?
windows? or which? "open"
end

Expand Down Expand Up @@ -134,7 +134,7 @@ def parse! arguments=ARGV, defaults=@defaults
end
end

if browseable?
if browsable?
parser.on("-b", "--browse", "Open web browser") do
options[:browse] = true
end
Expand Down Expand Up @@ -197,7 +197,7 @@ def run! options=nil
trap("TERM") { EM.add_timer(0) { quit! } }
trap("QUIT") { EM.add_timer(0) { quit! } } unless windows?

# Open the web browser before detatching console
# Open the web browser before detaching console
if options[:browse]
EventMachine.next_tick do
browse http_url
Expand Down

0 comments on commit 9590adb

Please sign in to comment.