From 3d35e41306ffcece1355f044f347080f9b3f3160 Mon Sep 17 00:00:00 2001 From: Audrey Lim Date: Mon, 13 Jun 2016 13:54:00 -0700 Subject: [PATCH] x/tools/present: fix null notes value on initial slide Change-Id: I370fdf2ef7de33976028f8cd872402a08d8f103c Reviewed-on: https://go-review.googlesource.com/24050 Reviewed-by: Andrew Gerrand --- cmd/present/static/notes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/present/static/notes.js b/cmd/present/static/notes.js index b584b708..288ef4c7 100644 --- a/cmd/present/static/notes.js +++ b/cmd/present/static/notes.js @@ -32,7 +32,7 @@ function initNotes() { var slidesUrl = window.location.href; var curSlide = parseInt(localStorage.getItem('destSlide'), 10); - var formattedNotes; + var formattedNotes = ''; var section = sections[curSlide - 1]; // curSlide is 0 when initialized from the first page of slides. // Check if section is valid before retrieving Notes. @@ -77,7 +77,6 @@ function initNotes() { w.addEventListener('storage', updateNotes, false); }; - function formatNotes(notes) { var formattedNotes = ''; if (notes) {