Skip to content

Commit

Permalink
Fix crash under iOS 10.x
Browse files Browse the repository at this point in the history
Remove observer before webkit's deinit
  • Loading branch information
crazygo authored Mar 28, 2020
1 parent 70495cb commit dc044fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/Classes/SwiftFlutterHtmlToPdfPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class SwiftFlutterHtmlToPdfPlugin: NSObject, FlutterPlugin{
}

// dispose WKWebView
self.urlObservation = nil
self.wkWebView = nil
result(convertedFilePath)
}
Expand Down

0 comments on commit dc044fc

Please sign in to comment.