File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,12 @@ export const setupAppContext = memoize(intent => {
4343 const root = document . querySelector ( '[role=application]' )
4444 const data = root . dataset
4545
46- const shouldUseWebFlagshipLink = isFlagshipApp ( ) && isFlagshipOfflineSupported ( )
46+ const shouldUseWebFlagshipLink =
47+ isFlagshipApp ( ) && isFlagshipOfflineSupported ( )
48+
49+ const links = shouldUseWebFlagshipLink
50+ ? [ new WebFlagshipLink ( { webviewIntent : intent } ) ]
51+ : null
4752
4853 // New improvements must be done with CozyClient
4954 const cozyClient = new CozyClient ( {
@@ -56,9 +61,7 @@ export const setupAppContext = memoize(intent => {
5661 )
5762 ? true
5863 : false ,
59- links : shouldUseWebFlagshipLink
60- ? new WebFlagshipLink ( { webviewIntent : intent } )
61- : null
64+ links
6265 } )
6366
6467 cozyClient . registerPlugin ( flag . plugin )
You can’t perform that action at this time.
0 commit comments