mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 10:58:50 +00:00
[WinForms] Fix non-existant DOM when url is not loaded
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user