From 3b8dbfd81c05c1ec26e609d77ee6a0ec67bac32d Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 11 Jul 2019 10:47:42 -0700 Subject: [PATCH] npm run format --- app/fileReceiver.js | 4 +--- app/locale.js | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/fileReceiver.js b/app/fileReceiver.js index 58182999..38c8979c 100644 --- a/app/fileReceiver.js +++ b/app/fileReceiver.js @@ -153,9 +153,7 @@ export default class FileReceiver extends Nanobus { const downloadPath = `/api/download/${this.fileInfo.id}`; let downloadUrl = getApiUrl(downloadPath); if (downloadUrl === downloadPath) { - downloadUrl = `${location.protocol}//${location.host}/api/download/${ - this.fileInfo.id - }`; + downloadUrl = `${location.protocol}//${location.host}/api/download/${this.fileInfo.id}`; } const a = document.createElement('a'); a.href = downloadUrl; diff --git a/app/locale.js b/app/locale.js index 59d63442..58cbc845 100644 --- a/app/locale.js +++ b/app/locale.js @@ -10,9 +10,9 @@ export async function getTranslator(locale) { const bundles = []; const { default: en } = await import('../public/locales/en-US/send.ftl'); if (locale !== 'en-US') { - const { - default: ftl - } = await import(`../public/locales/${locale}/send.ftl`); + const { default: ftl } = await import( + `../public/locales/${locale}/send.ftl` + ); bundles.push(makeBundle(locale, ftl)); } bundles.push(makeBundle('en-US', en));