-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use environment-safe platform check in preferences #11888
Conversation
Signed-off-by: thegecko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me 👍
I'm wondering whether it makes sense to grab the backend OS type instead since we are dealing with URIs. I saw that we never set the backend OS type in the web-based plugin host, so it will always be populated with the frontend OS type. We might want to address this in a follow-up PR.
Apologies for introducing the bad dependency, and thanks for the fix! |
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko <[email protected]> Signed-off-by: thegecko <[email protected]>
Signed-off-by: thegecko [email protected]
What it does
The PR: #11393
Introduced a dependency on the node
os
module in common plugin source. This had the effect that the preferences system doesn't load for web-based extensions.This PR fixes the issue by using the environment-safe checks instead.
How to test
Load a web extension which accesses user configuration and check it is possible.
Review checklist
Reminder for reviewers