diff --git a/options.js b/options.js index 4370609..9c7df05 100644 --- a/options.js +++ b/options.js @@ -127,11 +127,6 @@ export function filterOptions (newOptions = {}) { } } - // Check for invalid combinations - if (options.pdfSnapshot && !options.headless) { - throw new Error('"pdfSnapshot" option is only available in "headless" mode. Both options need to be "true".') - } - // Check that paths are valid for (const toCheck of ['ytDlpPath', 'cripPath']) { if (!statSync(options[toCheck]).isFile()) { diff --git a/options.test.js b/options.test.js index 8d5c413..80a38d8 100644 --- a/options.test.js +++ b/options.test.js @@ -44,12 +44,6 @@ test('filterOptions entries are typecast based on defaults.', async (_t) => { } }) -test('filterOptions pdfSnapshot cannot be activated in headless mode.', async (_t) => { - assert.throws(() => { - filterOptions({ pdfSnapshot: true, headless: false }) - }) -}) - test('filterOptions ytDlpPath must be a valid path to a file.', async (_t) => { assert.doesNotThrow(() => filterOptions()) // Default should not throw