Skip to content

A Chrome extension for testing WebHID and WebUSB integration with service workers

Notifications You must be signed in to change notification settings

nondebug/service-worker-test-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

service-worker-test-extension

A Chrome extension for testing WebHID and WebUSB integration with service workers.

Installation

  1. Create a local copy of the service-worker-test-extension repository by cloning with git or by downloading the source code and extracting it to a local directory.
  2. In Chrome, navigate to chrome://extensions.
  3. In the top right corner of the page, enable Developer mode.
  4. Click the Load Unpacked button to open a file chooser.
  5. In the file chooser, select the directory containing the service-worker-test-extension source.

Usage

The extension demonstrates how to request WebUSB and WebHID device permissions from a Manifest V3 extension. Click the extension toolbar icon to show a popup window, then click the button in the popup window to open an extension tab. In the opened tab, click the button navigator.usb.requestDevice to request WebUSB device permissions and navigator.hid.requestDevice to request WebHID device permissions.

About

A Chrome extension for testing WebHID and WebUSB integration with service workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published