Skip to content

Commit

Permalink
Executing JavaScript examples in Toolbox clarification (mdn#19981)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebloor committed Aug 26, 2022
1 parent a6eea79 commit 4b9cc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/mozilla/add-ons/webextensions/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Not all browsers support all the APIs: for the details, see [Browser support for

## Examples

Throughout the JavaScript API listings, you will find short code examples that illustrate how the API is used. You can experiment using these examples_without_ needing to create a web extension—using the console in the [Toolbox](https://extensionworkshop.com/documentation/develop/debugging/#developer-tools-toolbox).
Throughout the JavaScript API listings, short code examples illustrate how the API is used. You can experiment with most of these examples using the console in the [Toolbox](https://extensionworkshop.com/documentation/develop/debugging/#developer-tools-toolbox). However, you need Toolbox running in the context of a web extension. To do this, open `about:debugging` then **This Firefox**, click **Inspect** against any installed or temporary extension, and open **Console**. You can then paste and run the example code in the console.

For example, here is the first code example on this page running in the Toolbox console in Firefox Developer Edition:

Expand Down

0 comments on commit 4b9cc61

Please sign in to comment.