Index: gm/rebaseline_server/static/live-loader.js |
diff --git a/gm/rebaseline_server/static/live-loader.js b/gm/rebaseline_server/static/live-loader.js |
index cd4560f269bb3b287b1cc5f21aea8a9bab290bc6..9922c5a574bbfce001ef6941866b5e78a3f609be 100644 |
--- a/gm/rebaseline_server/static/live-loader.js |
+++ b/gm/rebaseline_server/static/live-loader.js |
@@ -1052,10 +1052,14 @@ Loader.controller( |
* |
* @param imagePair: ImagePair to generate image diff URL for |
*/ |
+ // TODO (stephana): this is a temporary fix. A fix is in the works |
+ // to get rid of this function and include the URL in the data |
+ // sent from the backend. |
+ |
$scope.getImageDiffRelativeUrl = function(imagePair) { |
var before = |
- imagePair[constants.KEY__IMAGEPAIRS__IMAGE_A_URL] + "-vs-" + |
- imagePair[constants.KEY__IMAGEPAIRS__IMAGE_B_URL]; |
+ imagePair[constants.KEY__IMAGEPAIRS__IMAGE_A_URL] + "_png-vs-" + |
+ imagePair[constants.KEY__IMAGEPAIRS__IMAGE_B_URL] + "_png"; |
return before.replace(/[^\w\-]/g, "_") + ".png"; |
}; |