Skip to content

Commit

Permalink
fix: Do not instanciate iframe for RN env
Browse files Browse the repository at this point in the history
This was causing issues on flagship app
  • Loading branch information
paultranvan committed Dec 20, 2024
1 parent 8361643 commit 15327ad
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as Comlink from 'comlink'
import React, { useContext, useState, useEffect } from 'react'

import { useClient } from 'cozy-client'
import { isFlagshipApp } from 'cozy-device-helper'
import flag from 'cozy-flags'
import Minilog from 'cozy-minilog'

Expand Down Expand Up @@ -66,7 +67,11 @@ export const DataProxyProvider = React.memo(({ children }) => {
}
}

initIframe()
if (isFlagshipApp()) {
setDataProxyServicesAvailable(false)
} else {
initIframe()
}
}, [client])

const onIframeLoaded = () => {
Expand Down

0 comments on commit 15327ad

Please sign in to comment.