Skip to content

Commit a78844b

Browse files
committed
_content/js: fix tour playground
Fixed a malformed request URL when options.backend is undefined. Fixes golang/go#49936 Fixes golang/tour#1281 Change-Id: I9c2c29d2d67e3bffe0d490517f6a9168a6d4dc46 Reviewed-on: https://go-review.googlesource.com/c/website/+/368914 Trust: Jamal Carvalho <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> Reviewed-by: Julie Qiu <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 9a694f2 commit a78844b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_content/js/playground.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function HTTPTransport(enableVet) {
123123
seq++;
124124
var cur = seq;
125125
var playing;
126-
$.ajax('/_/compile?backend='+options.backend, {
126+
$.ajax('/_/compile?backend=' + (options.backend || ''), {
127127
type: 'POST',
128128
data: { version: 2, body: body, withVet: enableVet },
129129
dataType: 'json',

0 commit comments

Comments
 (0)