mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
WebHistoryView: Don't try to display PDF files anymore
This used to work, but it probably changed with 1.5.6 or something, so let's just remove PDF support
This commit is contained in:
@@ -178,7 +178,7 @@ var showDiff = function() {
|
||||
}
|
||||
|
||||
var binaryDiff = function(filename) {
|
||||
if (filename.match(/\.(png|jpg|pdf|icns|psd)$/i))
|
||||
if (filename.match(/\.(png|jpg|icns|psd)$/i))
|
||||
return '<a href="#" onclick="return showImage(this, \'' + filename + '\')">Display image</a>';
|
||||
else
|
||||
return "Binary file differs";
|
||||
|
||||
Reference in New Issue
Block a user