Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: experimental/webtry/templates/index.html

Issue 231853002: Cleaned up the start page, added wait cursor, disabled Run button while waiting for results. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: first pass at workspaces Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/webtry/DESIGN.md ('k') | experimental/webtry/templates/recent.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/templates/index.html
diff --git a/experimental/webtry/templates/index.html b/experimental/webtry/templates/index.html
index d2ba8592cb08743278868ab1094c82bb15a75a45..80fc874b65a3a5b5f4f54d5625d4d570a03679e5 100644
--- a/experimental/webtry/templates/index.html
+++ b/experimental/webtry/templates/index.html
@@ -77,7 +77,8 @@ void draw(SkCanvas* canvas) {
req.addEventListener('error', codeError);
req.overrideMimeType('application/json');
req.open('POST', '.', true);
- req.send(code.value);
+ req.setRequestHeader('content-type', 'application/json');
+ req.send(JSON.stringify({"code": code.value}));
}
</script>
</body>
« no previous file with comments | « experimental/webtry/DESIGN.md ('k') | experimental/webtry/templates/recent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698