Browse Source

remove `startsWith`, because its ES6 and needs polyfills

Artur Paikin 7 years ago
parent
commit
d37aee305e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Core.js

+ 1 - 1
src/core/Core.js

@@ -331,7 +331,7 @@ class Uppy {
         }
 
         // otherwise this is likely an extension
-        if (type.startsWith('.') > -1) {
+        if (type[0] === '.') {
           if (file.extension === type.substr(1)) {
             return file.extension
           }