From 159600a8560a930047176b2dd9445677f502b375 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 13 Nov 2011 21:29:55 -0800 Subject: [PATCH] browser respects @title too --- src/atom/browser.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/atom/browser.coffee b/src/atom/browser.coffee index 3af9e7bd8..e45ba905e 100644 --- a/src/atom/browser.coffee +++ b/src/atom/browser.coffee @@ -28,6 +28,9 @@ class Browser extends Resource if innerHTML iframe.contentWindow.document.body.innerHTML = innerHTML - window.setTitle iframe.contentWindow.document.title - $(iframe).bind 'load', (e) => - window.setTitle e.target.contentWindow.document.title \ No newline at end of file + if @title + window.setTitle @title + else + window.setTitle iframe.contentWindow.document.title + $(iframe).bind 'load', (e) => + window.setTitle e.target.contentWindow.document.title \ No newline at end of file