mirror of
https://github.com/NotAShelf/nix-evaluator-stats.git
synced 2026-05-17 20:48:47 +00:00
add cli
This commit is contained in:
parent
5af2457177
commit
7697319a4d
11 changed files with 76 additions and 103 deletions
|
|
@ -38,6 +38,13 @@ function App() {
|
|||
|
||||
// Load from localStorage on mount
|
||||
onMount(() => {
|
||||
const query = window.location.search;
|
||||
const urlParams = new URLSearchParams(query);
|
||||
|
||||
const file = urlParams.get('file');
|
||||
if (file) {
|
||||
loadFromText(atob(file));
|
||||
}
|
||||
try {
|
||||
const saved = localStorage.getItem(STORAGE_KEY);
|
||||
if (saved) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue