Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Console: iOS fix persisting web data (#1197)

Michael Rademakerdbc3085efb25
diff --git a/console/iOS/ORLib/ORLib/UI/ORViewController.swift b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
index eb36bb73c..b705cbb6c 100644
--- a/console/iOS/ORLib/ORLib/UI/ORViewController.swift
+++ b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
@@ -94,6 +94,7 @@ open class ORViewcontroller : UIViewController {
} else {
sbHeight = UIApplication.shared.statusBarFrame.height
}
+ webCfg.websiteDataStore = WKWebsiteDataStore.default()
webCfg.allowsInlineMediaPlayback = true
let webFrame = CGRect(x: 0, y: sbHeight, width: view.frame.size.width, height: view.frame.size.height - sbHeight)
myWebView = WKWebView(frame: webFrame, configuration: webCfg)