The bug is that hitting "back" will trigger a cancel event and then the
dialog::backdrop will be removed first. The second "back" press will
remove the dialog or actually trigger history.back(), navigating back in
state.
The fix for this is to intercept the "cancel" event on the dialog and
then handle history management from there. Apparently this issue will be
triggered even if the history API isn't used, and the only way the user
can navigate normally with the dialog present is to actually hook into
the history API.
So, this is kind of a necessary change.
Annoying.
Thanks, Gemini, for the introspection and links.
It would seem that Chrome's history state with dialog.showModal causes
issues requiring hitting "back" twice, even if history.pushState isn't
ever used.
In the case of the drop-down, if a translation doesn't contain the
visible testament (e.g. the LXX while opening a NT passage), it will be
excluded from the list.
In the case of opening a link that is not contained in the currently
configured translation, a reasonable default will be selected instead.
1) Translation metadata has move from t9nmeta.js to meta.js.
2) Translation metadata is now going to be generated by
tools/genbooks.py (incomplete)
3) Translation metadata now includes a default translation to use via
the helloao.org API.
4) Link to Bible Gateway has been removed from the scripture dialog.
As of now, if there is an inline footnote, it will cause a paragraph
break because of the way the JSON processor currently handles "poem"
declarations.
The only solution for this may be to rework the loop so some lookahead
is possible.