mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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)
|
||
|
}
|