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 Jan 17, 2025
1 parent da2ed12 commit 3e2a196
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-devtools'
import { useWebviewIntent } from 'cozy-intent'
Expand Down Expand Up @@ -43,7 +43,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 @@ -56,8 +56,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 3e2a196

Please sign in to comment.