mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
12 lines
320 B
TypeScript
12 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)
|
||
|
}
|