Skip to content

Commit

Permalink
fix: legacy imports
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Jul 1, 2024
1 parent 5119e76 commit c6e7317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Portal.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { goto, preloadData } from "$app/navigation";
import { getPy } from "$lib/pyodide";
import getPy from "$lib/pyodide";
import { type SourceRef, refToSource } from "$lib/utils/source";
export let source: string;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pyodide/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getPyodide } from "./start/init";

export default async function getPy(feature: { console?: boolean; chat?: boolean }) {
export default async function getPy(feature: { console?: boolean; chat?: boolean } = {}) {
const { console = false, chat = false } = feature;

if (console) {
Expand Down

0 comments on commit c6e7317

Please sign in to comment.