mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
setting browser html happens in show()
This commit is contained in:
@@ -12,12 +12,12 @@ class Browser extends Resource
|
||||
return false if not /^https?:/.test url
|
||||
|
||||
@url = url
|
||||
|
||||
style = "width:100%;height:100%;background-color:#fff;border:none"
|
||||
@html = "<iframe src='#{@url}' style='#{style}'></iframe>"
|
||||
|
||||
@show()
|
||||
|
||||
true
|
||||
|
||||
show: ->
|
||||
style = "width:100%;height:100%;background-color:#fff;border:none"
|
||||
@html = "<iframe src='#{@url}' style='#{style}'></iframe>"
|
||||
|
||||
super
|
||||
|
||||
Reference in New Issue
Block a user