Skip to content

Commit

Permalink
fix: no error '! Couldn't find frame ID folio' anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jodros committed Dec 26, 2023
1 parent 84771ae commit 44369a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/folio/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function package:outputFolio (frame)
SILE.scratch.counters.folio.off = false
end
else
local folioFrame = SILE.getFrame(frame)
if (folioFrame) then
local success, folioFrame = pcall(SILE.getFrame(frame))
if success then
SILE.typesetNaturally(folioFrame, function ()
SILE.settings:pushState()
-- Restore the settings to the top of the queue, which should be the document #986
Expand Down

0 comments on commit 44369a6

Please sign in to comment.