aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vapi-client.js')
-rw-r--r--js/vapi-client.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/vapi-client.js b/js/vapi-client.js
index 7f9521d..fd77179 100644
--- a/js/vapi-client.js
+++ b/js/vapi-client.js
@@ -80,7 +80,7 @@ vAPI.messaging = {
requestId: 1,
connected: false,
- setup: function() {
+ start: function() {
this.addListener(this.builtinListener);
if ( this.toggleListenerCallback === null ) {
this.toggleListenerCallback = this.toggleListener.bind(this);
@@ -206,18 +206,19 @@ vAPI.messaging = {
}
};
-vAPI.messaging.setup()
+vAPI.messaging.start()
/******************************************************************************/
// No need to have vAPI client linger around after shutdown if
// we are not a top window (because element picker can still
// be injected in top window).
-if ( window !== window.top ) {
+// Needs more investigating
+/*if ( window !== window.top ) {
vAPI.shutdown.add(function() {
vAPI = null;
});
-}
+}*/
/******************************************************************************/