Browse Source

codacy fixes

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
a0338eb727
  1. 5
      static/src/Recent/Recent.js
  2. 2
      static/src/index.js

5
static/src/Recent/Recent.js

@ -19,9 +19,8 @@ export default class RecentComponent extends Component {
util.getRecentURLs(recent => { util.getRecentURLs(recent => {
let parsed = []; let parsed = [];
for (let key in recent) { for (let key in recent) {
let shorted = recent[key] recent[key].ID = key;
shorted.ID = key; parsed.push(recent[key]);
parsed.push(shorted);
} }
this.setState({ recent: parsed }) this.setState({ recent: parsed })
}) })

2
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 // Open the oAuth window that is it centered in the middle of the screen
var wwidth = 400, var wwidth = 400,
wHeight = 500; 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 { } else {
this._oAuthPopup.location = url; this._oAuthPopup.location = url;
} }

Loading…
Cancel
Save