1 parent e69c5eb commit 038de08Copy full SHA for 038de08
1 file changed
src/background/vpncontroller/vpncontroller.js
@@ -168,14 +168,19 @@ export class VPNController extends Component {
168
169
// Handle responses from MozillaVPN client
170
async handleResponse(response) {
171
- console.debug(response);
172
if (!response.t) {
173
// The VPN Client always sends a ".t : string"
174
// to determing the message type.
175
// If it's not there it's from the bridge.
+ const oldState = this.#mState.value;
176
this.handleBridgeResponse(response, this.#mState);
177
+ // Only log bridge messages when they actually change state
178
+ if (oldState !== this.#mState.value) {
179
+ console.debug("Bridge state changed:", response);
180
+ }
181
return;
182
}
183
+ console.debug(response);
184
switch (response.t) {
185
case "servers":
186
if (
0 commit comments