diff --git a/includes/utils/ace-meta-browser-fix.js b/includes/utils/ace-meta-browser-fix.js new file mode 100644 index 0000000..433454d --- /dev/null +++ b/includes/utils/ace-meta-browser-fix.js @@ -0,0 +1,16 @@ +document.addEventListener("DOMContentLoaded", function () { + if (!navigator.userAgent.includes("OculusBrowser")){ + return; + } + + console.log("Applying Oculus Browser Editor Fix"); + + Array.from(document.querySelectorAll("textarea.ace_text-input")).forEach( + (el) => { + el.style.fontSize = "32px"; + el.style.minHeight = "32px"; + el.style.minWidth = "100px"; + el.style.opacity = "0.01"; + }, + ); +}); diff --git a/index.html b/index.html index 021ecff..5862801 100644 --- a/index.html +++ b/index.html @@ -727,6 +727,7 @@

RESET

+