mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
08567c290e
Restart CM6 switch-away survey GitOrigin-RevId: 1d62aaf27834cb3919f6ca30c269a1ef3c2e9a5e
11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
import localStorage from '../../../infrastructure/local-storage'
|
|
|
|
const surveyOneKey = 'editor.has_seen_cm6_switch_away_survey'
|
|
|
|
export function setHasSeenCM6SwitchAwaySurvey() {
|
|
localStorage.setItem(surveyOneKey, true)
|
|
}
|
|
|
|
export function hasSeenCM6SwitchAwaySurvey() {
|
|
return !!localStorage.getItem(surveyOneKey)
|
|
}
|