diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index e8cc456867..2099824f13 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -115,7 +115,11 @@ var callbacks = { var body = data.body; if (body.match(/\.gif|\.jpg|\.jpeg|\.png/)) { - body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "$1
<\/a>"); + var mod = ""; + if (body.match(/dropbox.com/)) { + mod = "?dl=1"; + } + body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "
$1
<\/a>"); } else { body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "
$1<\/a>"); }