mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-26 19:14:30 +02:00
Update for MV3 and Chrome compatibility
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// Polyfill the "browser" global in Chrome.
|
||||
globalThis.browser ??= chrome;
|
||||
|
||||
const usernameInput = document.querySelector("#username");
|
||||
const passwordInput = document.querySelector("#password");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user