Permalink
Browse files

Revert "Added viewport support and defered execution on gopherjs serve (

#860)" (#866)

This reverts commit bf5fc7d.

Reason: Discussion at #570 (comment)
  • Loading branch information...
hajimehoshi committed Oct 4, 2018
1 parent b337c87 commit 1babbf986f6fcb1156d0646cdba5c4f81bc32849
Showing with 1 addition and 9 deletions.
  1. +1 −9 tool.go
View
10 tool.go
@@ -641,15 +641,7 @@ func (fs serveCommandFileSystem) Open(requestName string) (http.File, error) {
if isIndex {
// If there was no index.html file in any dirs, supply our own.
return newFakeFile("index.html", []byte(`<html>
<head>
<meta name="viewport" content="initial-scale=1">
<meta charset="utf-8">
<script defer src="`+base+`.js"></script>
</head>
<body>
</body>
</html>`)), nil
return newFakeFile("index.html", []byte(`<html><head><meta charset="utf-8"><script src="`+base+`.js"></script></head><body></body></html>`)), nil
}
return nil, os.ErrNotExist

0 comments on commit 1babbf9

Please sign in to comment.