[x/tour] tour: check if file content is set before storing in localStorage

file() returns undefined when there is no file to display, like on
https://tour.golang.org/welcome/2

Change-Id: Ia26719537949c9909947068d790f07e2eee8f9ff
Reviewed-on: https://go-review.googlesource.com/90075
Reviewed-by: Andrew Bonventre <andybons@golang.org>
X-Tour-Commit: 8e3b0c2fe87f92ea28e34688bf90a281b991f4ce
1 file changed
tree: 944a54b54d0756d6f79272bbfd35058c5df0778a
  1. tour/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. LICENSE
  6. PATENTS
  7. README.md
README.md

Go Website

This repository holds the Go Website server code and content.

Download/Install

The easiest way to install is to run go get -u golang.org/x/website. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.