Skip to content

Commit

Permalink
fix for interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kobakazu0429 committed Nov 6, 2023
1 parent 3067194 commit 49222a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/pages/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@
export let location: Location;
$: {
const params = new URLSearchParams(location.search);
const lz = params.get("data");
lzStore.set(lz);
if (location) {
const params = new URLSearchParams(location.search);
const lz = params.get("data");
lzStore.set(lz);
}
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/shortcuts/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { escapeCode, recoveryCode } from "./../editor/utils";
import tinykeys from "tinykeys";
import { tinykeys } from "tinykeys";
import debounce from "just-debounce-it";
import { saveCodeStorage } from "../localStorage/index";
import { formatCode, getCode, newFile as newFileFn } from "../editor/utils";
Expand Down

0 comments on commit 49222a4

Please sign in to comment.