Skip to content

Commit 98eb724

Browse files
committed
refactor: remove console log statements from auth and preferences modules
1 parent fb9c76a commit 98eb724

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

public/auth.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const acceptedTypes = ['TOKEN_RECEIVED', 'ERROR_RECEIVED']
22
window.addEventListener('message', (event) => {
3-
console.log('Received message from content script:', event.data)
43
if (acceptedTypes.includes(event.data.type)) {
54
// Forward to content scripte
65
window.postMessage(event.data, '*')

src/features/onboarding/components/steps/SourcesTab.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ export const SourcesTab = ({
2929
options={sources}
3030
defaultValues={tabsData.sources}
3131
onChange={(_, selectedChips) => {
32-
console.log(
33-
'sources',
34-
selectedChips.map((chip) => chip.value)
35-
)
36-
3732
setTabsData({ ...tabsData, sources: selectedChips.map((chip) => chip.value) })
3833
}}
3934
/>

src/stores/preferences.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const defaultStorage: StateStorage = {
7979

8080
return JSON.stringify({ state: newState, version })
8181
} catch (e) {
82-
console.log('Error getting item', e)
8382
return null
8483
}
8584
},
@@ -101,7 +100,6 @@ const defaultStorage: StateStorage = {
101100
const newValue = JSON.stringify({ state: newState, version })
102101
window.localStorage.setItem(name, newValue)
103102
} catch (e) {
104-
console.log('Prefs, SetItem', e)
105103
window.localStorage.setItem(name, '')
106104
}
107105
},

0 commit comments

Comments
 (0)