diff --git a/src/settings.ts b/src/settings.ts
index 1bfa861..36a7b01 100644
--- a/src/settings.ts
+++ b/src/settings.ts
@@ -143,27 +143,29 @@ export class SettingsTab extends PluginSettingTab {
})
)
- // PDF Indexing
- const indexPDFsDesc = new DocumentFragment()
- indexPDFsDesc.createSpan({}, span => {
- span.innerHTML = `Omnisearch will include PDFs in search results.
-
- - ⚠️ Depending on their size, PDFs can take anywhere from a few seconds to 2 minutes to be processed.
- - ⚠️ Texts extracted from PDFs may contain errors such as missing spaces, or spaces in the middle of words.
- - ⚠️ Some PDFs can't be processed correctly and will return an empty text.
- - This feature is currently a work-in-progress, please report issues that you might experience.
-
- Needs a restart to fully take effect.`
- })
- new Setting(containerEl)
- .setName('BETA - PDF Indexing')
- .setDesc(indexPDFsDesc)
- .addToggle(toggle =>
- toggle.setValue(settings.PDFIndexing).onChange(async v => {
- settings.PDFIndexing = v
- await saveSettings(this.plugin)
- })
- )
+ // PDF Indexing - disabled on iOS
+ if (!Platform.isIosApp) {
+ const indexPDFsDesc = new DocumentFragment()
+ indexPDFsDesc.createSpan({}, span => {
+ span.innerHTML = `Omnisearch will include PDFs in search results.
+
+ - ⚠️ Depending on their size, PDFs can take anywhere from a few seconds to 2 minutes to be processed.
+ - ⚠️ Texts extracted from PDFs may contain errors such as missing spaces, or spaces in the middle of words.
+ - ⚠️ Some PDFs can't be processed correctly and will return an empty text.
+ - This feature is currently a work-in-progress, please report issues that you might experience.
+
+ Needs a restart to fully take effect.`
+ })
+ new Setting(containerEl)
+ .setName('BETA - PDF Indexing')
+ .setDesc(indexPDFsDesc)
+ .addToggle(toggle =>
+ toggle.setValue(settings.PDFIndexing).onChange(async v => {
+ settings.PDFIndexing = v
+ await saveSettings(this.plugin)
+ })
+ )
+ }
// #endregion Behavior
// #region User Interface
@@ -324,6 +326,12 @@ export let settings = Object.assign({}, DEFAULT_SETTINGS) as OmnisearchSettings
export async function loadSettings(plugin: Plugin): Promise {
settings = Object.assign({}, DEFAULT_SETTINGS, await plugin.loadData())
+
+ // Make sure that PDF indexing is disabled on iOS
+ if (Platform.isIosApp) {
+ settings.PDFIndexing = false
+ }
+
showExcerpt.set(settings.showExcerpt)
}