From ac32b7c5fde6699758c4bbe1d7ff00e462416d77 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Tue, 25 May 2021 20:11:38 -0700 Subject: [PATCH] Update documentation of native-messaging example Instructs user to view console output via "Inspect" button on extensions page, since there was no output using the previous instructions. Additionally, updates expected output. --- native-messaging/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/native-messaging/README.md b/native-messaging/README.md index d90eb94..6cd7287 100644 --- a/native-messaging/README.md +++ b/native-messaging/README.md @@ -27,9 +27,13 @@ To assist in troubleshooting on Windows, there is a script called `check_config_ Then just install the add-on as usual, by visiting about:debugging, clicking "Load Temporary Add-on", and selecting the add-on's "manifest.json". -You should see a new browser action icon in the toolbar. Open the console ("Tools/Web Developer/Browser Console" in Firefox), and click the browser action icon. You should see output like this in the console: +Now, open the extension's console using the "Inspect" button - this is where you'll see communication between the browser and native app. + +You should see a new browser action icon in the toolbar. Click it. You should see output like this in the console: Sending: ping - Received: pong + Received: pong3 + +If you're running Python 2.x, you'll see "pong2" as the response instead. If you don't see this output, see the [Troubleshooting guide](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging#Troubleshooting) for ideas.