Fix ?dbg=1 loading with xsiframe linker

The xsiframe bootstrap uses str.indexOf("gerrit_ui.nocache.js") on
script tags to find the URL of the module. Add a prefix to the
debug module to ensure the indexOf still finds the debug code.

Change-Id: I77aa0cd3415f1e2d94cbf058ce5007e1dd475e34
This commit is contained in:
Shawn Pearce
2014-04-23 15:18:12 -07:00
parent 21a6c21717
commit 3d88e97a2b
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ genrule(
'unzip -q $SRCDIR/ui_dbg.zip;' +
'mv' +
' gerrit_ui/gerrit_ui.nocache.js' +
' gerrit_ui/gerrit_dbg.nocache.js;' +
' gerrit_ui/dbg_gerrit_ui.nocache.js;' +
'unzip -qo $SRCDIR/ui_opt.zip;' +
'mkdir -p $(dirname $OUT);' +
'zip -qr $OUT .',

View File

@@ -330,7 +330,7 @@ public class HostPageServlet extends HttpServlet {
nocache.setAttribute("src", noCacheName);
opt = new Content(hostDoc);
nocache.setAttribute("src", "gerrit_ui/gerrit_dbg.nocache.js");
nocache.setAttribute("src", "gerrit_ui/dbg_gerrit_ui.nocache.js");
debug = new Content(hostDoc);
}