Merge pull request #1930 from michalsrutek/feature/fix-couple-of-warnings
⚠️ Fix a couple of iOS warnings
This commit is contained in:
commit
e1330c1304
|
@ -145,7 +145,7 @@ public class InAppBrowserWebViewController: UIViewController, InAppBrowserDelega
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let wId = windowId {
|
if windowId != nil {
|
||||||
channelDelegate?.onBrowserCreated()
|
channelDelegate?.onBrowserCreated()
|
||||||
webView?.runWindowBeforeCreatedCallbacks()
|
webView?.runWindowBeforeCreatedCallbacks()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class FlutterWebViewController: NSObject, FlutterPlatformView, Disposable
|
||||||
}
|
}
|
||||||
load(initialUrlRequest: initialUrlRequest, initialFile: initialFile, initialData: initialData)
|
load(initialUrlRequest: initialUrlRequest, initialFile: initialFile, initialData: initialData)
|
||||||
}
|
}
|
||||||
else if let wId = windowId {
|
else if windowId != nil {
|
||||||
webView.runWindowBeforeCreatedCallbacks()
|
webView.runWindowBeforeCreatedCallbacks()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class WebMessageChannelChannelDelegate : ChannelDelegate {
|
||||||
if let webView = webMessageChannel?.webView, let ports = webMessageChannel?.ports, ports.count > 0 {
|
if let webView = webMessageChannel?.webView, let ports = webMessageChannel?.ports, ports.count > 0 {
|
||||||
let index = arguments!["index"] as! Int
|
let index = arguments!["index"] as! Int
|
||||||
let port = ports[index]
|
let port = ports[index]
|
||||||
var message = WebMessage.fromMap(map: arguments!["message"] as! [String: Any?])
|
let message = WebMessage.fromMap(map: arguments!["message"] as! [String: Any?])
|
||||||
|
|
||||||
var ports: [WebMessagePort] = []
|
var ports: [WebMessagePort] = []
|
||||||
if let notConnectedPorts = message.ports {
|
if let notConnectedPorts = message.ports {
|
||||||
|
|
|
@ -509,7 +509,7 @@ public class WebViewChannelDelegate : ChannelDelegate {
|
||||||
break
|
break
|
||||||
case .postWebMessage:
|
case .postWebMessage:
|
||||||
if let webView = webView {
|
if let webView = webView {
|
||||||
var message = WebMessage.fromMap(map: arguments!["message"] as! [String: Any?])
|
let message = WebMessage.fromMap(map: arguments!["message"] as! [String: Any?])
|
||||||
let targetOrigin = arguments!["targetOrigin"] as! String
|
let targetOrigin = arguments!["targetOrigin"] as! String
|
||||||
|
|
||||||
var ports: [WebMessagePort] = []
|
var ports: [WebMessagePort] = []
|
||||||
|
|
|
@ -148,7 +148,7 @@ public class PrintJobSettings: ISettings<PrintJobController> {
|
||||||
}
|
}
|
||||||
|
|
||||||
override func getRealSettings(obj: PrintJobController?) -> [String: Any?] {
|
override func getRealSettings(obj: PrintJobController?) -> [String: Any?] {
|
||||||
var realOptions: [String: Any?] = toMap()
|
let realOptions: [String: Any?] = toMap()
|
||||||
return realOptions
|
return realOptions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue