Skip to content

Commit 40e0f0d

Browse files
committed
🎨 cleanup some logging
1 parent ecafa02 commit 40e0f0d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sanityv3/plugins/asset-source-fotoware/src/FotowareAssetSource.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ const FotowareAssetSource = forwardRef<HTMLDivElement>((props: any, ref) => {
105105
const exportedImage = event.data.export.export
106106

107107
const getBase64 = async (uri: string, source: string) => {
108-
console.log('getBase64')
109108
const url = getExportURL(uri)
110109
setLoading(true)
111110

@@ -238,7 +237,7 @@ const FotowareAssetSource = forwardRef<HTMLDivElement>((props: any, ref) => {
238237
if (accessToken && iframeURL && !loading) {
239238
return <FotowareWidget onClose={onClose} url={iframeURL} iframeRef={iframeRef} />
240239
}
241-
console.log('has accesstoken', !!accessToken)
240+
242241
return (
243242
<Dialog width={0} id="fotowareAssetSource" header="Select image from Fotoware" onClose={onClose} ref={ref}>
244243
{container && !accessToken && createPortal(props.children, container)}

sanityv3/plugins/asset-source-fotoware/src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const getAuthURL = (requestState: string): string | false => {
2121
}
2222

2323
export const getAccessToken = (): string | false => {
24-
console.log('getAccessToken')
2524
const accessToken = localStorage.getItem('FotowareToken')
2625

2726
if (!accessToken) return false

0 commit comments

Comments
 (0)