diff --git a/Kiwix-iOS/Controller/Main/MainController.swift b/Kiwix-iOS/Controller/Main/MainController.swift
index 695ea56a..9a94acf4 100644
--- a/Kiwix-iOS/Controller/Main/MainController.swift
+++ b/Kiwix-iOS/Controller/Main/MainController.swift
@@ -114,13 +114,6 @@ class MainController: UIViewController {
}
}
- // MARK: - Tasks
-
- func setTableOfContentIfNeeded() {
- guard traitCollection.horizontalSizeClass == .Regular && isShowingTableOfContents else {return}
- tableOfContentsController?.headings = JSInjection.getTableOfContents(webView)
- }
-
// MARK: - Configure
func configureUIElements(horizontalSizeClass: UIUserInterfaceSizeClass) {
@@ -164,7 +157,7 @@ class MainController: UIViewController {
}
func configureTableOfContents() {
- guard traitCollection.horizontalSizeClass == .Regular && isShowingTableOfContents else {return}
+ guard isShowingTableOfContents else {return}
tableOfContentsController?.headings = JSInjection.getTableOfContents(webView)
}
@@ -201,6 +194,7 @@ class MainController: UIViewController {
func tableOfContentButtonTapped(sender: UIBarButtonItem) {
guard let _ = article else {return}
isShowingTableOfContents ? hideTableOfContentsController() : showTableOfContentsController()
+ configureTableOfContents()
}
func showLibraryButtonTapped() {
diff --git a/Kiwix-iOS/Info.plist b/Kiwix-iOS/Info.plist
index 6fa4a869..09bd863a 100644
--- a/Kiwix-iOS/Info.plist
+++ b/Kiwix-iOS/Info.plist
@@ -49,7 +49,7 @@
CFBundleVersion
- 1.8.1739
+ 1.8.1744
ITSAppUsesNonExemptEncryption
LSRequiresIPhoneOS
diff --git a/Kiwix-iOSWidgets/Bookmarks/Info.plist b/Kiwix-iOSWidgets/Bookmarks/Info.plist
index 92d8513c..b64be4bc 100644
--- a/Kiwix-iOSWidgets/Bookmarks/Info.plist
+++ b/Kiwix-iOSWidgets/Bookmarks/Info.plist
@@ -21,7 +21,7 @@
CFBundleSignature
????
CFBundleVersion
- 1.8.1739
+ 1.8.1744
NSExtension
NSExtensionMainStoryboard