refactor: extract isDarkMode/getColorPrefix to settings.js as shared utilities

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 21:09:03 -04:00
parent d659238289
commit 7ac47b5c3c
3 changed files with 22 additions and 16 deletions

View File

@@ -15,8 +15,8 @@
function getHelpers() {
return {
isDarkMode: window.RedditTweaks.badgeTweak.isDarkMode,
getColorPrefix: window.RedditTweaks.badgeTweak.getColorPrefix,
isDarkMode: window.RedditTweaks.isDarkMode,
getColorPrefix: window.RedditTweaks.getColorPrefix,
};
}