diff --git a/cmd/present/static/notes.js b/cmd/present/static/notes.js index 46abf3bc0..0144848d5 100644 --- a/cmd/present/static/notes.js +++ b/cmd/present/static/notes.js @@ -54,7 +54,7 @@ function initNotes() { slides.src = slidesUrl; w.document.body.appendChild(slides); - var curSlide = parseInt(localStorage.getItem(getDestSlideKey()), 10); + var curSlide = parseInt(localStorage.getItem(destSlideKey()), 10); var formattedNotes = ''; var section = sections[curSlide - 1]; // curSlide is 0 when initialized from the first page of slides. @@ -107,7 +107,7 @@ function updateNotes() { // When triggered from parent window, notesWindow is null // The storage event listener on notesWindow will update notes if (!notesWindow) return; - var destSlide = parseInt(localStorage.getItem(getDestSlideKey()), 10); + var destSlide = parseInt(localStorage.getItem(destSlideKey()), 10); var section = sections[destSlide - 1]; var el = notesWindow.document.getElementById('presenter-notes');