Skip to content

Commit da251c8

Browse files
committed
Show the exact GopherJS version in the playground header.
1 parent 1b4ccad commit da251c8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99
<body ng-controller="PlaygroundCtrl">
1010
<div id="banner">
11-
<span id="head">playground</span>
11+
<span id="head">playground <small>(GopherJS {{version}})</small></span>
1212
<span id="controls">
1313
<input type="button" value="Run" ng-click="run(false)" />
1414
<input type="button" value="Format" ng-click="format()" />

playground/playground.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func main() {
6161
scope.Set("imports", true)
6262
scope.Set("shareUrl", "")
6363
scope.Set("showShareUrl", false)
64+
scope.Set("version", compiler.Version)
6465

6566
packages := make(map[string]*compiler.Archive)
6667
var pkgsToLoad map[string]struct{}

0 commit comments

Comments
 (0)