The browser extension Wallet Client for Chrome and Firefox. To aim for better cross-browser compatibility, use the WebExtension browser polyfill. Be aware that some differences between Chrome/Firefox may not be covered.
The extension's source code is written in TypeScript and built with esbuild, in order to fully bundle the project dependencies (like Lit) into the output JS.
Run yarn build to run the build once, or yarn dev to keep esbuild watching for changes. (Note that this runs automatically with yarn start:all from the root script).
- See the tutorial on loading an unpacked extension for Google Chrome
- See the tutorial on debugging techniques in Google Chrome
Run yarn start to start an isolated FF instance with the extension loaded. To aid development, follow the debugging workflow:
- Navigate to
about:debugging - Click on "This Firefox"
- Click on the "Inspect" button under the Splice Wallet Gateway
- (Optional) open the three dot menu on the right, and click "Disable Popup Auto-Hide" to prevent the extension window from closing automatically when switching between the Dev Tools window and the main browser window