Index: remoting/webapp/host_controller.js |
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js |
index c78079c98e8f9844edca0689906210d27062d6a4..364e5c22e8cac305965a8d02136fa3878769bbce 100644 |
--- a/remoting/webapp/host_controller.js |
+++ b/remoting/webapp/host_controller.js |
@@ -24,7 +24,11 @@ remoting.HostController = function() { |
console.log('Host version:', version); |
} |
}; |
- this.plugin_.getDaemonVersion(printVersion); |
+ try { |
+ this.plugin_.getDaemonVersion(printVersion); |
+ } catch (err) { |
+ console.log('Host version not available.'); |
Jamie
2012/05/18 01:13:35
Optional: I think I'd just call printVersion('')
|
+ } |
}; |
// Note that the values in the enums below are copied from |