mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
browser respects @title too
This commit is contained in:
@@ -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
|
||||
if @title
|
||||
window.setTitle @title
|
||||
else
|
||||
window.setTitle iframe.contentWindow.document.title
|
||||
$(iframe).bind 'load', (e) =>
|
||||
window.setTitle e.target.contentWindow.document.title
|
||||
Reference in New Issue
Block a user