Skip to content

Commit

Permalink
feat: Rename FlagshipLink to WebFlagshipLink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea committed Sep 23, 2024
1 parent 35520b6 commit 3041534
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/AppWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import flag from 'cozy-flags'
import CozyClient, {
CozyProvider,
RealTimeQueries,
FlagshipLink
WebFlagshipLink
} from 'cozy-client'
import CozyDevtools from 'cozy-client/dist/devtools'
import { useWebviewIntent } from 'cozy-intent'
Expand Down Expand Up @@ -42,7 +42,7 @@ export const setupAppContext = memoize(intent => {
const root = document.querySelector('[role=application]')
const data = root.dataset

const shouldUseFlagshipLink = isFlagshipApp() && isFlagshipOfflineSupported()
const shouldUseWebFlagshipLink = isFlagshipApp() && isFlagshipOfflineSupported()

// New improvements must be done with CozyClient
const cozyClient = new CozyClient({
Expand All @@ -55,8 +55,8 @@ export const setupAppContext = memoize(intent => {
)
? true
: false,
links: shouldUseFlagshipLink
? new FlagshipLink({ webviewIntent: intent })
links: shouldUseWebFlagshipLink
? new WebFlagshipLink({ webviewIntent: intent })
: null
})

Expand Down

0 comments on commit 3041534

Please sign in to comment.