Skip to content

Commit

Permalink
enable_pdfjs is now default true.
Browse files Browse the repository at this point in the history
Hence, amending the viewpdf documentation that you must turn it off
for viewpdf to work.
  • Loading branch information
msdemlei authored and c0dev0id committed Feb 8, 2024
1 parent 6f3de9a commit 6d3a9fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
### Added

- Manage dom events with luakit signals.
- An enable_pdfjs setting to go back to letting viewpdf handle PDFs.

### Changed

Expand Down
3 changes: 2 additions & 1 deletion lib/viewpdf.lua
@@ -1,7 +1,8 @@
--- Automatic PDF viewing.
--
-- This module automatically downloads PDF files to the luakit cache directory,
-- and opens them with `xdg-open`.
-- and opens them with `xdg-open`. You must disable the enable_pdfjs
-- setting for this to work.
--
-- @module viewpdf
-- @copyright 2016 Aidan Holm <aidanholm@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion lib/webview.lua
Expand Up @@ -575,7 +575,7 @@ local webview_settings = {
},
["application.enable_pdfjs"] = {
type = "boolean",
default = false,
default = true,
desc = [=[
Whether to load PDFs in a built-in javascript renderer.
The default is to pass them on to the OS. This setting
Expand Down

0 comments on commit 6d3a9fd

Please sign in to comment.