Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Jul 11, 2019
1 parent 9c2fe39 commit 3b8dbfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/fileReceiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions app/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3b8dbfd

Please sign in to comment.