mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
Revert to MV2
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
// Polyfill the "browser" global in Chrome.
|
||||
globalThis.browser ??= chrome;
|
||||
|
||||
let target = "https://httpbin.org/basic-auth/*";
|
||||
|
||||
let pendingRequests = [];
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"description": "Performs basic authentication by supplying stored credentials.",
|
||||
"manifest_version": 3,
|
||||
"manifest_version": 2,
|
||||
"name": "stored-credentials",
|
||||
"version": "2.0",
|
||||
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/stored-credentials",
|
||||
@@ -26,10 +26,7 @@
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"webRequestAuthProvider",
|
||||
"storage"
|
||||
],
|
||||
|
||||
"host_permissions": [
|
||||
"storage",
|
||||
"https://httpbin.org/basic-auth/*"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// Polyfill the "browser" global in Chrome.
|
||||
globalThis.browser ??= chrome;
|
||||
|
||||
const usernameInput = document.querySelector("#username");
|
||||
const passwordInput = document.querySelector("#password");
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// Polyfill the "browser" global in Chrome.
|
||||
globalThis.browser ??= chrome;
|
||||
|
||||
/*
|
||||
Default settings. Initialize storage to these values.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user