Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,11 @@
navigationItem.trailingItemGroups = [group]
navigationItem.leftBarButtonItems = nil

if editor == "nextcloud text" {
navigationItem.hidesBackButton = true
}

let config = WKWebViewConfiguration()
config.websiteDataStore = WKWebsiteDataStore.nonPersistent()
let contentController = config.userContentController
contentController.add(self, name: "DirectEditingMobileInterface")
// FIXME: ONLYOFFICE Due to the WK Shared Workers issue the editors cannot be opened on the devices with iOS 16.1.

Check warning on line 63 in iOSClient/Viewer/NCViewerNextcloudText/NCViewerNextcloudText.swift

View workflow job for this annotation

GitHub Actions / Lint

Todo Violation: FIXMEs should be resolved (ONLYOFFICE Due to the WK Share...) (todo)
if editor == "onlyoffice" {
let dropSharedWorkersScript = WKUserScript(source: "delete window.SharedWorker;", injectionTime: WKUserScriptInjectionTime.atDocumentStart, forMainFrameOnly: false)
config.userContentController.addUserScript(dropSharedWorkersScript)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class NCViewerRichDocument: UIViewController, WKNavigationDelegate, WKScriptMess
}
]))
}
navigationItem.hidesBackButton = true

let config = WKWebViewConfiguration()
config.websiteDataStore = WKWebsiteDataStore.nonPersistent()
Expand Down
Loading