Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 8d84b50

Browse files
authored
DEV: Convert the helper to a plain function (#53)
1 parent a5c966d commit 8d84b50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { registerHelper } from "discourse-common/lib/helpers";
2-
3-
registerHelper("media-helper", function ([value]) {
1+
export default function (value) {
42
switch (value) {
53
case "dark":
64
return "all";
@@ -9,4 +7,4 @@ registerHelper("media-helper", function ([value]) {
97
default:
108
return "(prefers-color-scheme: dark)";
119
}
12-
});
10+
}

0 commit comments

Comments
 (0)