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 πŸ“–

321 B
Raw Blame
import type { Route } from '../types';

export function navigate(route: Route) {
  if (route.page === 'guide') {
    window.location.hash = `#guide/${route.guideId}`;
  } else if (route.category === 'all') {
    window.location.hash = '#library';
  } else {
    window.location.hash = `#library/${route.category}`;
  }
}