[WinForms] Fix non-existant DOM when url is not loaded

This commit is contained in:
Roman
2018-11-20 23:44:09 +02:00
parent ea9189d7cd
commit a52d90bd5e

View File

@@ -121,6 +121,8 @@ class BrowserView:
if url:
self.web_browser.Navigate(url)
else:
self.web_browser.DocumentText = '<!doctype html><html><head></head><body></body></html>'
self.url = url