overleaf/services/web/frontend/js/features/pdf-preview/util/pdf-caching-flags.js

9 lines
281 B
JavaScript
Raw Normal View History

import getMeta from '../../../utils/meta'
function isFlagEnabled(flag) {
return getMeta('ol-splitTestVariants')?.[flag] === 'enabled'
}
export const enablePdfCaching = isFlagEnabled('pdf-caching-mode')
export const trackPdfDownloadEnabled = isFlagEnabled('track-pdf-download')