Skip to content

Commit

Permalink
Allow opt-in in saving queries via #savequeries URL-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Dec 15, 2023
1 parent e930429 commit 1b12657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/duckdb-wasm-shell/src/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class ShellRuntime {
this.hash = "queries=v0";
this.hash += ",";
this.hash += encode;
if (window.location.hash.startsWith("#savequeries"))
window.location.hash = "savequeries&" + this.hash;
this.history.push(value);
}
}
Expand Down

0 comments on commit 1b12657

Please sign in to comment.