Skip to content

Commit

Permalink
Merge pull request #1 from ericboehs/patch-2
Browse files Browse the repository at this point in the history
Properly set title
  • Loading branch information
wideopenspaces committed Sep 10, 2014
2 parents 19b88b1 + f86ca5d commit 0854fcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/assets/javascripts/_response.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ class Response
@_title ?= @_extract_title()

_extract_title: ->
if @_is_full_document_response()
$('title', @_get_doc()).text()
else
@xhr.getResponseHeader('X-Wiselinks-Title')
title_header = decodeURIComponent @xhr.getResponseHeader 'X-Wiselinks-Title'
$("<p>").html(title_header).text() || $('title', @_get_doc()).text()

description: ->
@_description ?= @_extract_description()
Expand Down

0 comments on commit 0854fcf

Please sign in to comment.