mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #17277 from overleaf/jpa-hide-old-writefull-banner
[web] hide old Writefull banner when the extension is already installed GitOrigin-RevId: 35a1a3f6e8dd5860d81ea61ea01c40419454d40c
This commit is contained in:
parent
f4454cfe7e
commit
404e023e08
1 changed files with 4 additions and 0 deletions
|
@ -58,9 +58,13 @@ function UserNotifications() {
|
|||
return false
|
||||
}
|
||||
|
||||
const hasWritefullExtensionAlreadyInstalled =
|
||||
window.writefull?.type === 'extension'
|
||||
|
||||
const show =
|
||||
user?.writefull?.enabled === true || // show to any users who have writefull enabled regardless of split test
|
||||
(!writefullIntegrationSplitTestEnabled && // show old banner to users who are not in the split test, who are on chrome and havent dismissed
|
||||
!hasWritefullExtensionAlreadyInstalled &&
|
||||
isChromium() &&
|
||||
getMeta('ol-showWritefullPromoBanner'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue