1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-24 23:26:17 +09:00
This commit is contained in:
syuilo 2019-02-18 19:22:10 +09:00
parent 532821d503
commit 882d829558
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 0 additions and 20 deletions

View File

@ -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'],

View File

@ -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'],