reveal.js
reveal.js copied to clipboard
Speaker notes window doesn't get reference to Reveal object when loading from filesystem
When viewing a presentation from the filesystem the notes window doesn't get a reference to the Reveal object and throws the following error:
Uncaught ReferenceError: Reveal is not defined
at getTimings (notes.html:484)
at setupTimer (notes.html:541)
at handleConnectMessage (notes.html:387)
at notes.html:354
When loading from a server the error does not occur.
The reference is added here: https://github.com/hakimel/reveal.js/blob/7991693bde3ee680868dfbfa1291d96735571c22/plugin/notes/notes.js#L25 however it doesn't seem to propagate to the speaker notes window itself.
I'm using macos. I'm seeing the error on Chrome and Safari, but Firefox works OK.
This issue is still persistent in May 2023. Apparently there has been some change in Chrome that causes this to happen, but Reveal.js is practically useless without this fix