Skip to content

Commit

Permalink
fix(Authorization): atlassian change markup, fix auth screen
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirPal committed Jun 20, 2019
1 parent 484adb5 commit 7b4e381
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions app/renderer/authPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ function initAtlassian(base, reset) {
input.focus();
}

reset.innerHTML = 'Back';
reset.addEventListener('click', (ev) => {
ev.stopPropagation();
ev.preventDefault();
back();
});
if (reset) {
reset.innerHTML = 'Back';
reset.addEventListener('click', (ev) => {
ev.stopPropagation();
ev.preventDefault();
back();
});
}
store.dispatch(setRendererUiState({
authFormIsComplete: true,
}));
Expand Down Expand Up @@ -105,10 +107,7 @@ function init() {
) {
const base = document.getElementById('root');
const reset = document.getElementById('resetPassword');
if (
base
&& reset
) {
if (base) {
initAtlassian(base, reset);
}
} else if (global.location.host === 'accounts.google.com') {
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (process.env.NODE_ENV === 'production') {
enableNative: false,
beforeSend(event, hint) {
if (
event.message.startsWith('Non-Error exception captured')
event?.message?.startsWith('Non-Error exception captured')
&& hint.originalException.error
&& hint.originalException.extra
) {
Expand Down

0 comments on commit 7b4e381

Please sign in to comment.