diff --git a/webview/platforms/cocoa.py b/webview/platforms/cocoa.py index 245538ad..ce56cfba 100644 --- a/webview/platforms/cocoa.py +++ b/webview/platforms/cocoa.py @@ -106,7 +106,7 @@ def windowWillClose_(self, notification): i.closed.set() if BrowserView.instances == {}: BrowserView.app.stop_(self) - BrowserView.app.abortModal_() + BrowserView.app.abortModal() def windowDidResize_(self, notification): i = BrowserView.get_instance('window', notification.object())