Commit 6d55f5d3 authored by Adam Barth's avatar Adam Barth

Merge pull request #2755 from abarth/mojo_shell_bool

Add a bool to indicate whether we're in MojoShell
parents 9568c957 23a76048
......@@ -48,6 +48,9 @@ class MojoShell {
}
final ApplicationConnection _embedderConnection = _initEmbedderConnection();
/// Whether [connectToApplication] is able to connect to other applications.
bool get canConnectToOtherApplications => _shell != null;
/// Attempts to connect to an application via the Mojo shell.
ApplicationConnection connectToApplication(String url) {
if (_shell == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment