Skip to content

Commit

Permalink
fix: WryDownloadDelegate call after first time
Browse files Browse the repository at this point in the history
* Update mod.rs

* Added fixes
  • Loading branch information
colin99d authored Feb 20, 2023
1 parent 272380d commit 7795356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"wry": patch
---

Update the value returned on a `None` value of `ClassDecl::new("WryDownloadDelegate", class!(NSObject))`
from `UIViewController` to `WryDownloadDelegate`.
2 changes: 1 addition & 1 deletion src/webview/wkwebview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ impl InnerWebView {
);
cls.register()
}
None => class!(UIViewController),
None => class!(WryDownloadDelegate),
};

let download_delegate: id = msg_send![cls, new];
Expand Down

0 comments on commit 7795356

Please sign in to comment.