A platform for community discussion. Free, open, simple.
Revert "FIX: Stop non-rgb header background colors crashing Discourse… (#32477)
Penar Musaraje06bbdf77b31
diff --git a/app/assets/javascripts/discourse/app/lib/utilities.js b/app/assets/javascripts/discourse/app/lib/utilities.jsindex 24c4d1ac636..54b81bdf8f8 100644--- a/app/assets/javascripts/discourse/app/lib/utilities.js+++ b/app/assets/javascripts/discourse/app/lib/utilities.js@@ -435,17 +435,9 @@ export function prefersReducedMotion() {}export function postRNWebviewMessage(prop, value) {- if (window.ReactNativeWebView === undefined) {- return;- }-- if (prop === "headerBg" && !value.startsWith("rgb(")) {- // eslint-disable-next-line no-console- console.warn("Skipping unsupported headerBg value:", value);- return;+ if (window.ReactNativeWebView !== undefined) {+ window.ReactNativeWebView.postMessage(JSON.stringify({ [prop]: value }));}-- window.ReactNativeWebView.postMessage(JSON.stringify({ [prop]: value }));}function pickMarker(text) {