Merge pull request #17279 from overleaf/revert-17277-jpa-hide-old-writefull-banner

Revert "[web] hide old Writefull banner when the extension is already installed"

GitOrigin-RevId: bc4d28cff7ce472a5f271026122c5fc6c4ab7886
This commit is contained in:
Jimmy Domagala-Tang 2024-02-22 12:31:29 -08:00 committed by Copybot
parent 404e023e08
commit 5dc3716581

View file

@ -58,13 +58,9 @@ 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'))