Skip to content

Commit

Permalink
lint cleanup, console.log cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Dec 15, 2023
1 parent d86bc5d commit f321435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/OIDCLanding.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ const OIDCLanding = () => {
}
})
.catch(e => {
// eslint-disable-next-line no-console
console.error('@@ Oh, snap, OTP exchange failed!', e);
samlError.current = e;
});
}
}, [otp, store]);
}, [otp, store, okapi.tenant, okapi.url]);

if (!otp) {
return (
Expand Down
2 changes: 0 additions & 2 deletions src/serviceWorkerRegistration.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
export const registerServiceWorker = async () => { };

export const unregisterServiceWorker = async () => {
console.log('-- (rtr) unregistering service worker ...'); // eslint-disable-line no-console
if ('serviceWorker' in navigator) {
navigator.serviceWorker.ready
.then((reg) => {
reg.unregister();
console.log('-- (rtr) ... unregistered!'); // eslint-disable-line no-console
})
.catch((error) => {
console.error(error.message); // eslint-disable-line no-console
Expand Down

0 comments on commit f321435

Please sign in to comment.