mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 18:20:09 +02: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)
|
|
}
|