From 1b1e9828352d5ba5d6c758eccf1cdac4e2a33510 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 25 Mar 2017 09:19:57 -0400 Subject: [PATCH] minor code review --- platform/chromium/vapi-common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/chromium/vapi-common.js b/platform/chromium/vapi-common.js index 6020d6665..803081a28 100644 --- a/platform/chromium/vapi-common.js +++ b/platform/chromium/vapi-common.js @@ -56,6 +56,7 @@ vAPI.download = function(details) { var a = document.createElement('a'); a.href = details.url; a.setAttribute('download', details.filename || ''); + a.setAttribute('type', 'text/plain'); a.dispatchEvent(new MouseEvent('click')); };