From 44aeb8b7c377f1eed68ac06f687821c6658c65a2 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Tue, 2 Jul 2019 20:24:52 +0100 Subject: [PATCH] cmd/present: correct function reference. A previous change introduced a new way of storing which page should be synced with the notes, but used the wrong function name. This corrects the function reference. Fixes golang/go#32902 Change-Id: Iefbb189eae12f0d53e46e6f42d3526302515cab3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/184737 Run-TryBot: Bryan C. Mills Reviewed-by: Bryan C. Mills --- cmd/present/static/notes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/present/static/notes.js b/cmd/present/static/notes.js index 46abf3bc05..0144848d5e 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');