Skip to content

Added UserAgentFallback to App #406

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

Merged
merged 2 commits into from
May 19, 2020
Merged

Conversation

Mandrakia
Copy link
Contributor

Added UserAgentFallback to the App object

BridgeConnector.Socket.Emit("appGetUserAgentFallback");

return taskCompletionSource.Task;
}).Result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm .Result can causes deadlocks. The cleanest implementation would be:
public Task GetUserAgentFallback
public void SetUserAgentFallback

Or what do you guys think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a problem with functions that are called regularly during application runtime. I would leave it at Properties.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some application design is important too... otherwise we would only have methods..

@GregorBiswanger GregorBiswanger self-assigned this May 19, 2020
@GregorBiswanger
Copy link
Member

@Mandrakia Thanks for your contribution.
Write me your postal address on Gitter and you will get Electron.NET sticker :)

@GregorBiswanger GregorBiswanger merged commit c40affb into ElectronNET:master May 19, 2020
@GregorBiswanger GregorBiswanger added this to the 9.31.1 milestone Jun 2, 2020
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.

3 participants