From b21c693148f7ff378ad39f9694efc9a0abd7e81d Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Mon, 23 Sep 2024 18:54:44 +0200 Subject: [PATCH] feat: Rename FlagshipLink to WebFlagshipLink Related PR: cozy/cozy-client#1536 --- src/targets/browser/makeClient.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/targets/browser/makeClient.js b/src/targets/browser/makeClient.js index a5dbbe6d..5d35a639 100644 --- a/src/targets/browser/makeClient.js +++ b/src/targets/browser/makeClient.js @@ -1,6 +1,6 @@ import schema from 'src/doctypes' -import CozyClient, { FlagshipLink } from 'cozy-client' +import CozyClient, { WebFlagshipLink } from 'cozy-client' import { isFlagshipApp, isFlagshipOfflineSupported } from 'cozy-device-helper' import flag from 'cozy-flags' import { Intents } from 'cozy-interapp' @@ -18,7 +18,7 @@ export const makeClient = intent => { const protocol = window.location.protocol const cozyUrl = `${protocol}//${data.domain}` - const shouldUseFlagshipLink = isFlagshipApp() && isFlagshipOfflineSupported() + const shouldUseWebFlagshipLink = isFlagshipApp() && isFlagshipOfflineSupported() const client = new CozyClient({ uri: cozyUrl, @@ -29,8 +29,8 @@ export const makeClient = intent => { }, schema, store: true, - links: shouldUseFlagshipLink - ? new FlagshipLink({ webviewIntent: intent }) + links: shouldUseWebFlagshipLink + ? new WebFlagshipLink({ webviewIntent: intent }) : null })