From 0bb0279f078b86ab034ba8a48864ccb7b2e641c1 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 13 Nov 2011 21:28:25 -0800 Subject: [PATCH] better browser titles --- src/atom/browser.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/atom/browser.coffee b/src/atom/browser.coffee index 269b8cb9f..3af9e7bd8 100644 --- a/src/atom/browser.coffee +++ b/src/atom/browser.coffee @@ -23,5 +23,11 @@ class Browser extends Resource super + iframe = @pane.find('iframe')[0] + if innerHTML - @pane.find('iframe')[0].contentWindow.document.body.innerHTML = 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