diff --git a/javascripts/discourse/helpers/media-helper.js b/javascripts/discourse/helpers/media-helper.js index e369c35..bf114f3 100644 --- a/javascripts/discourse/helpers/media-helper.js +++ b/javascripts/discourse/helpers/media-helper.js @@ -1,6 +1,4 @@ -import { registerHelper } from "discourse-common/lib/helpers"; - -registerHelper("media-helper", function ([value]) { +export default function (value) { switch (value) { case "dark": return "all"; @@ -9,4 +7,4 @@ registerHelper("media-helper", function ([value]) { default: return "(prefers-color-scheme: dark)"; } -}); +}