Cleanup code, detect download support (alternate flow for IE, Edge)

This commit is contained in:
Bryan Housel
2017-09-15 16:39:50 -04:00
parent a43b1e3c0a
commit 82494750ef
3 changed files with 60 additions and 35 deletions
+2
View File
@@ -110,6 +110,8 @@ export function utilDetect(force) {
detected.filedrop = (window.FileReader && 'ondrop' in window);
detected.download = !(detected.ie || detected.browser.toLowerCase() === 'edge');
function nav(x) {
return navigator.userAgent.indexOf(x) !== -1;
}