From a0338eb727a7d7c65e82fc725ac7e6711c052b91 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 5 Jan 2018 17:20:53 +0100 Subject: [PATCH] codacy fixes --- static/src/Recent/Recent.js | 5 ++--- static/src/index.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/static/src/Recent/Recent.js b/static/src/Recent/Recent.js index 6d2e058..6ab2ad3 100644 --- a/static/src/Recent/Recent.js +++ b/static/src/Recent/Recent.js @@ -19,9 +19,8 @@ export default class RecentComponent extends Component { util.getRecentURLs(recent => { let parsed = []; for (let key in recent) { - let shorted = recent[key] - shorted.ID = key; - parsed.push(shorted); + recent[key].ID = key; + parsed.push(recent[key]); } this.setState({ recent: parsed }) }) diff --git a/static/src/index.js b/static/src/index.js index d58a313..fcf6f4a 100644 --- a/static/src/index.js +++ b/static/src/index.js @@ -79,7 +79,7 @@ export default class BaseComponent extends Component { // Open the oAuth window that is it centered in the middle of the screen var wwidth = 400, wHeight = 500; - this._oAuthPopup = window.open(url, '', `width=${wwidth}, height=${wHeight}, top=${(window.screen.height / 2) - (wHeight / 2)}, left=${(window.screen.width / 2) - (wwidth / 2)}`) + this._oAuthPopup = window.open(url, 'Authenticate with OAuth 2.0', `width=${wwidth}, height=${wHeight}, top=${(window.screen.height / 2) - (wHeight / 2)}, left=${(window.screen.width / 2) - (wwidth / 2)}`) } else { this._oAuthPopup.location = url; }