diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-18 19:22:10 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-18 19:22:10 +0900 |
| commit | 882d829558c162bf11249e5899096ef5fffdf762 (patch) | |
| tree | 4d2c86438d6d5fae3d5b479ba8c0242329ffbda0 /src/client | |
| parent | Fix #4309 (diff) | |
| download | misskey-882d829558c162bf11249e5899096ef5fffdf762.tar.gz misskey-882d829558c162bf11249e5899096ef5fffdf762.tar.bz2 misskey-882d829558c162bf11249e5899096ef5fffdf762.zip | |
Fix #4063
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/desktop/api/update-avatar.ts | 10 | ||||
| -rw-r--r-- | src/client/app/desktop/api/update-banner.ts | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/client/app/desktop/api/update-avatar.ts b/src/client/app/desktop/api/update-avatar.ts index ff3d4dccfc..be332ab16c 100644 --- a/src/client/app/desktop/api/update-avatar.ts +++ b/src/client/app/desktop/api/update-avatar.ts @@ -5,16 +5,6 @@ import ProgressDialog from '../views/components/progress-dialog.vue'; export default ($root: any) => { const cropImage = file => new Promise((resolve, reject) => { - - const regex = RegExp('\.(jpg|jpeg|png|gif|webp|bmp|tiff)$'); - if (!regex.test(file.name) ) { - $root.dialog({ - title: locale['desktop']['invalid-filetype'], - text: null - }); - return reject('invalid-filetype'); - } - const w = $root.new(CropWindow, { image: file, title: locale['desktop']['avatar-crop-title'], diff --git a/src/client/app/desktop/api/update-banner.ts b/src/client/app/desktop/api/update-banner.ts index 3b2cf113be..50f1b5fe83 100644 --- a/src/client/app/desktop/api/update-banner.ts +++ b/src/client/app/desktop/api/update-banner.ts @@ -5,16 +5,6 @@ import ProgressDialog from '../views/components/progress-dialog.vue'; export default ($root: any) => { const cropImage = file => new Promise((resolve, reject) => { - - const regex = RegExp('\.(jpg|jpeg|png|gif|webp|bmp|tiff)$'); - if (!regex.test(file.name) ) { - $root.dialog({ - title: locale['desktop']['invalid-filetype'], - text: null - }); - return reject('invalid-filetype'); - } - const w = $root.new(CropWindow, { image: file, title: locale['desktop']['banner-crop-title'], |