Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b2d0d7 + 070362b commit 58868bcCopy full SHA for 58868bc
README.md
@@ -26,7 +26,7 @@ func main() {
26
27
gl, err := webgl.NewContext(canvas, attrs)
28
if err != nil {
29
- panic(err)
+ js.Global.Call("alert", "Error: "+err.Error())
30
}
31
32
gl.ClearColor(0.8, 0.3, 0.01, 1)
@@ -37,7 +37,7 @@ func main() {
37
webgl_example.html:
38
39
```html
40
-<html><head></head><body><script src="webgl_example.js"></script></body></html>
+<html><body><script src="webgl_example.js"></script></body></html>
41
```
42
43
To produce `webgl_example.js` file, run `gopherjs build webgl_example.go`.
0 commit comments