From 1efa9f8ad7b55b5603ae14f472abbba13b025f5c Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 27 Feb 2017 17:08:27 +0900 Subject: [PATCH] Remove consecutive lines --- src/web/app/desktop/scripts/update-avatar.js | 8 ++++---- src/web/app/desktop/scripts/update-banner.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/web/app/desktop/scripts/update-avatar.js b/src/web/app/desktop/scripts/update-avatar.js index f3c4594ffd..7d09b5dcb0 100644 --- a/src/web/app/desktop/scripts/update-avatar.js +++ b/src/web/app/desktop/scripts/update-avatar.js @@ -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 => { diff --git a/src/web/app/desktop/scripts/update-banner.js b/src/web/app/desktop/scripts/update-banner.js index 51a107cf4c..7acc862d41 100644 --- a/src/web/app/desktop/scripts/update-banner.js +++ b/src/web/app/desktop/scripts/update-banner.js @@ -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 => {