Преглед изворни кода

Use latin `c` character

These two places were using a different character that looks a lot like
`c` but is not quite `c`.
Renée Kooi пре 4 година
родитељ
комит
857c0a30f1
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      packages/@uppy/dashboard/src/index.js
  2. 1 1
      packages/@uppy/image-editor/src/index.js

+ 1 - 1
packages/@uppy/dashboard/src/index.js

@@ -246,7 +246,7 @@ module.exports = class Dashboard extends Plugin {
     const editors = this._getEditors(targets)
     const editors = this._getEditors(targets)
 
 
     return editors.some((target) => (
     return editors.some((target) => (
-      this.uppy.getPlugin(target.id).сanEditFile(file)
+      this.uppy.getPlugin(target.id).canEditFile(file)
     ))
     ))
   }
   }
 
 

+ 1 - 1
packages/@uppy/image-editor/src/index.js

@@ -61,7 +61,7 @@ module.exports = class ImageEditor extends Plugin {
     this.setPluginState() // so that UI re-renders and we see the updated locale
     this.setPluginState() // so that UI re-renders and we see the updated locale
   }
   }
 
 
-  сanEditFile (file) {
+  canEditFile (file) {
     if (!file.type || file.isRemote) {
     if (!file.type || file.isRemote) {
       return false
       return false
     }
     }