From 08247fb5dd86848b7b9b221c37ef15f5396d147f Mon Sep 17 00:00:00 2001 From: Deathamns Date: Wed, 5 Nov 2014 17:01:18 +0100 Subject: [PATCH] Preferences button for Safari Brings back the possibility to click a checkbox which opens the extension settings from Safari's Preferences/Extensions. --- src/js/vapi-client.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/vapi-client.js b/src/js/vapi-client.js index 0b9e22e..26c0b08 100644 --- a/src/js/vapi-client.js +++ b/src/js/vapi-client.js @@ -56,10 +56,10 @@ if (self.chrome) { vAPI.chrome = true; vAPI.messaging = { port: null, + channels: {}, + listeners: {}, requestId: 0, connectorId: uniqueId(), - listeners: {}, - channels: {}, connector: messagingConnector, setup: function() { this.port = chrome.runtime.connect({name: this.connectorId}); @@ -111,10 +111,10 @@ if (self.chrome) { // relevant? // https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/MessagesandProxies/MessagesandProxies.html#//apple_ref/doc/uid/TP40009977-CH14-SW12 vAPI.messaging = { - connectorId: uniqueId(), - requestId: 0, - listeners: {}, channels: {}, + listeners: {}, + requestId: 0, + connectorId: uniqueId(), connector: messagingConnector, setup: function() { this._connector = function(msg) {