Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Medley <[email protected]>
Co-authored-by: amysteamdev <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2023
1 parent c12182c commit 7d96e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-samples/userScripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This sample demonstrates using the [`chrome.userScripts`](https://developer.chro

## Overview

Once this extension is installed, clicking this extension's action icon will open an options page.
Clicking this extension's action icon opens an options page.

<img src="screenshot.png" height=250 alt="Screenshot showing the chrome.userScripts API demo running in Chrome.">

Expand All @@ -24,6 +24,6 @@ This sample allows you to inject the following:

## Implementation Notes

The User Scripts API requires developer mode. We check for this by attempting to access `chrome.userScripts`, which throws an error on property access if it is disabled.
The User Scripts API requires users to have developer mode enabled. We check for this by attempting to access `chrome.userScripts`, which throws an error on property access if it is disabled.

When a change is made on the options page, we use the `chrome.userScripts` API to update the user script registration.

0 comments on commit 7d96e90

Please sign in to comment.