Skip to content

Commit

Permalink
fix(convert): parse ppt url failed (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Jul 30, 2021
1 parent 5aa372b commit d36f52b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop/renderer-app/src/utils/CoursewarePreloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CoursewarePreloader {
const [, baseURL, taskType, taskUUID] = pptFiles;

return {
baseURL,
baseURL: baseURL.replace(/^pptx:\/\//, "https://"),
taskType: taskType as TaskType,
taskUUID,
};
Expand Down
2 changes: 1 addition & 1 deletion web/flat-web/src/utils/CoursewarePreloader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CoursewarePreloader {
const [, baseURL, pptType, taskUUID] = pptFiles;

return {
baseURL,
baseURL: baseURL.replace(/^pptx:\/\//, "https://"),
pptType: pptType as "static" | "dynamic",
taskUUID,
};
Expand Down

0 comments on commit d36f52b

Please sign in to comment.