Skip to content

playground: Fix build, update snippet-store address. #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Line map[string]string

var output []Line

const snippetStoreHost = "snippets.gotools.org"
const snippetStoreHost = "snippets.gopherjs.org"

func main() {
var location = dom.GetWindow().Top().Location() // We might be inside an iframe, but want to use the location of topmost window.
Expand Down
6 changes: 3 additions & 3 deletions playground/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -64928,7 +64928,7 @@ $packages["github.com/gopherjs/gopherjs.github.io/playground"] = (function() {
var codeArea, fileSet, id, importContext, packages, pkgsReceived, pkgsToLoad, req, run;
if (strings.HasPrefix($internalize(location.URLUtils.Object.hash, $String), "#/")) {
id = $internalize(location.URLUtils.Object.hash, $String).substring(2);
req = xhr.NewRequest("GET", "http://snippets.gotools.org/p/" + id);
req = xhr.NewRequest("GET", "http://snippets.gopherjs.org/p/" + id);
req.Object.responseType = $externalize("arraybuffer", $String);
$go((function($b) {
var $args = arguments, $r, $s = 0, $this = this, _r, data, err;
Expand Down Expand Up @@ -65132,7 +65132,7 @@ $packages["github.com/gopherjs/gopherjs.github.io/playground"] = (function() {
}), funcType$1);
scope.Object.share = $externalize((function() {
var req$1;
req$1 = xhr.NewRequest("POST", "http://snippets.gotools.org/share");
req$1 = xhr.NewRequest("POST", "http://snippets.gopherjs.org/share");
req$1.Object.responseType = $externalize("arraybuffer", $String);
$go((function($b) {
var $args = arguments, $r, $s = 0, $this = this, _r, data, err;
Expand Down Expand Up @@ -65169,7 +65169,7 @@ $packages["github.com/gopherjs/gopherjs.github.io/playground"] = (function() {
event.PreventDefault();
if (strings.HasPrefix($internalize(location.URLUtils.Object.hash, $String), "#/")) {
id$1 = $internalize(location.URLUtils.Object.hash, $String).substring(2);
req$1 = xhr.NewRequest("GET", "http://snippets.gotools.org/p/" + id$1);
req$1 = xhr.NewRequest("GET", "http://snippets.gopherjs.org/p/" + id$1);
req$1.Object.responseType = $externalize("arraybuffer", $String);
$go((function($b) {
var $args = arguments, $r, $s = 0, $this = this, _r, data, err;
Expand Down