Skip to content

Conversation

@TiborUdvari
Copy link

This fixes #123.

I checked if it's the right browser, not to break anything for anyone else accidentally.

@ffd8
Copy link
Owner

ffd8 commented Oct 2, 2025

Nice idea – I'll have to test it out very soon on a Quest to see exactly what it's changing. Due to the size and singularly of the function etc – I'd rather it just get embedded directly within the monster index.html file, instead of external link. It can be called towards the end of settings rather than a listener on the DOMContentLoaded or use the listener, but call this function separately, incase others are needed in the future.

@TiborUdvari
Copy link
Author

I did it like this because it modifies the ace editor css, since it's a hacky patch I though it would be best to only have it load when it's an Oculus Browser, that way it's 100% sure not to interfere with any other stuff

Notice checking the user agent

  if (!navigator.userAgent.includes("OculusBrowser")){
    return;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ace Editor Zoom issue with the Oculus Browser

2 participants