Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

401 B
Raw Blame
const SEEN_VERSION = 'mimik.seenVersion';
const UPDATE_NOTICE = 'mimik.updateNotice';

export function updatedVersion(storage: Storage, running: string): string | undefined {
  const seen = storage.getItem(SEEN_VERSION);
  if (seen !== null && seen !== running) storage.setItem(UPDATE_NOTICE, running);
  storage.setItem(SEEN_VERSION, running);
  return storage.getItem(UPDATE_NOTICE) ?? undefined;
}