Reviewers: jasvir, ihab.awad,
Description:
Currently, the Playground assumes it runs at the top level path at
a website, which works fine for "ant runserver". However, this is
somewhat inconvenient if you run the war in a server like tomcat.
This change lets the Playground run in any subpath.
Please review this at http://codereview.appspot.com/4515182/
Affected files:
M src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
Index: src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
===================================================================
--- src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
(revision 4490)
+++ src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
(working copy)
@@ -382,7 +382,7 @@
Element div, String policy, String html, String js) /*-{
var that = this;
$wnd.caja.configure({
- cajaServer: '/',
+ cajaServer: '',
debug: true
}, function (frameGroup) {
var extraImports = {};