Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Jan 17, 2024
1 parent a1df4b6 commit 682a63e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion islands/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export default function Editor(props: EditorProps) {
if (isPass) {

let courseSlug: string;
if (props.slug.includes("/")) {
if (props.slug.includes("\\")) {
courseSlug = props.slug
} else if (props.slug.includes("/")) {
courseSlug = props.slug.split("/")[0] + "\\" + props.slug.split("/")[1]
} else {
courseSlug = props.slug;
Expand Down

0 comments on commit 682a63e

Please sign in to comment.