summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-18 19:22:10 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-18 19:22:10 +0900
commit882d829558c162bf11249e5899096ef5fffdf762 (patch)
tree4d2c86438d6d5fae3d5b479ba8c0242329ffbda0 /src/client
parentFix #4309 (diff)
downloadmisskey-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.ts10
-rw-r--r--src/client/app/desktop/api/update-banner.ts10
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'],