Check whether webview is destructed after Webview::Window::init

This commit is contained in:
Ilya Fedin 2024-02-05 16:20:46 +04:00 committed by John Preston
parent 2f0b50cb37
commit bb3f8fbbe8
2 changed files with 8 additions and 0 deletions

View File

@ -619,6 +619,10 @@ postEvent: function(eventType, eventData) {
}
};)");
if (!_webview) {
return false;
}
setupProgressGeometry();
return true;

View File

@ -703,6 +703,10 @@ postEvent: function(eventType, eventData) {
}
};)");
if (!_webview) {
return false;
}
setupProgressGeometry();
return true;