mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 01:50:45 +01:00
Remove consecutive lines
This commit is contained in:
parent
87fb079e5b
commit
1efa9f8ad7
2 changed files with 8 additions and 8 deletions
|
@ -10,7 +10,7 @@ module.exports = (I, cb, file = null) => {
|
|||
title: 'アバターとして表示する部分を選択',
|
||||
aspectRatio: 1 / 1
|
||||
})[0];
|
||||
|
||||
|
||||
cropper.on('cropped', blob => {
|
||||
const data = new FormData();
|
||||
data.append('i', I.token);
|
||||
|
@ -30,7 +30,7 @@ module.exports = (I, cb, file = null) => {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
cropper.on('skiped', () => {
|
||||
set(file);
|
||||
});
|
||||
|
@ -40,9 +40,9 @@ module.exports = (I, cb, file = null) => {
|
|||
const progress = riot.mount(document.body.appendChild(document.createElement('mk-progress-dialog')), {
|
||||
title: '新しいアバターをアップロードしています'
|
||||
})[0];
|
||||
|
||||
|
||||
if (folder) data.append('folder_id', folder.id);
|
||||
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', CONFIG.apiUrl + '/drive/files/create', true);
|
||||
xhr.onload = e => {
|
||||
|
|
|
@ -10,7 +10,7 @@ module.exports = (I, cb, file = null) => {
|
|||
title: 'バナーとして表示する部分を選択',
|
||||
aspectRatio: 16 / 9
|
||||
})[0];
|
||||
|
||||
|
||||
cropper.on('cropped', blob => {
|
||||
const data = new FormData();
|
||||
data.append('i', I.token);
|
||||
|
@ -30,7 +30,7 @@ module.exports = (I, cb, file = null) => {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
cropper.on('skiped', () => {
|
||||
set(file);
|
||||
});
|
||||
|
@ -40,9 +40,9 @@ module.exports = (I, cb, file = null) => {
|
|||
const progress = riot.mount(document.body.appendChild(document.createElement('mk-progress-dialog')), {
|
||||
title: '新しいバナーをアップロードしています'
|
||||
})[0];
|
||||
|
||||
|
||||
if (folder) data.append('folder_id', folder.id);
|
||||
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', CONFIG.apiUrl + '/drive/files/create', true);
|
||||
xhr.onload = e => {
|
||||
|
|
Loading…
Reference in a new issue