Skip to content

Commit

Permalink
Merge pull request #13 from veganhacktivists/fix/feedback
Browse files Browse the repository at this point in the history
Organize code based on feedback
  • Loading branch information
stephan281094 committed Oct 5, 2022
2 parents 16c68d2 + 0a12798 commit fbe3b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function createLocaleMap(locales: Array<keyof typeof labels>) {
}

export function getSortedLabels(map: Record<keyof typeof labels, string>) {
return Object.entries(map).sort(([_0, a], [_1, b]) =>
a.localeCompare(b, "en")
return Object.entries(map).sort(([_0, labelNameA], [_1, labelNameB]) =>
labelNameA.localeCompare(labelNameB, "en")
);
}
4 changes: 2 additions & 2 deletions lib/videojs/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import videojs from "video.js";
import "video.js/dist/video-js.min.css";
import { defaultOptions, Options } from "../options";
import { setupVideo } from "../video";
import "video.js/dist/video-js.min.css";
import "./theme.css";
import videojs from "video.js";

export default async function wdplayer(
selector: string,
Expand Down

0 comments on commit fbe3b16

Please sign in to comment.