mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-01 23:01:28 +01:00
[EC-598] feat: scaffold content scripting
This commit is contained in:
parent
166e5a747e
commit
ac3cd6ab6a
2
apps/browser/src/content/webauthn/content-script.ts
Normal file
2
apps/browser/src/content/webauthn/content-script.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log("content-script loaded");
|
2
apps/browser/src/content/webauthn/page-script.ts
Normal file
2
apps/browser/src/content/webauthn/page-script.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log("page-script loaded");
|
@ -21,7 +21,8 @@
|
|||||||
"content/autofill.js",
|
"content/autofill.js",
|
||||||
"content/autofiller.js",
|
"content/autofiller.js",
|
||||||
"content/notificationBar.js",
|
"content/notificationBar.js",
|
||||||
"content/contextMenuHandler.js"
|
"content/contextMenuHandler.js",
|
||||||
|
"content/webauthn/content-script.js"
|
||||||
],
|
],
|
||||||
"matches": ["http://*/*", "https://*/*", "file:///*"],
|
"matches": ["http://*/*", "https://*/*", "file:///*"],
|
||||||
"run_at": "document_start"
|
"run_at": "document_start"
|
||||||
@ -98,6 +99,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
|
"content/webauthn/page-script.js",
|
||||||
"notification/bar.html",
|
"notification/bar.html",
|
||||||
"images/icon38.png",
|
"images/icon38.png",
|
||||||
"images/icon38_locked.png"
|
"images/icon38_locked.png"
|
||||||
|
@ -106,7 +106,12 @@
|
|||||||
},
|
},
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
{
|
{
|
||||||
"resources": ["notification/bar.html", "images/icon38.png", "images/icon38_locked.png"],
|
"resources": [
|
||||||
|
"content/webauthn/page-script.js",
|
||||||
|
"notification/bar.html",
|
||||||
|
"images/icon38.png",
|
||||||
|
"images/icon38_locked.png"
|
||||||
|
],
|
||||||
"matches": ["<all_urls>"]
|
"matches": ["<all_urls>"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -141,6 +141,8 @@ const mainConfig = {
|
|||||||
"content/notificationBar": "./src/content/notificationBar.ts",
|
"content/notificationBar": "./src/content/notificationBar.ts",
|
||||||
"content/contextMenuHandler": "./src/content/contextMenuHandler.ts",
|
"content/contextMenuHandler": "./src/content/contextMenuHandler.ts",
|
||||||
"content/message_handler": "./src/content/message_handler.ts",
|
"content/message_handler": "./src/content/message_handler.ts",
|
||||||
|
"content/webauthn/content-script": "./src/content/webauthn/content-script.ts",
|
||||||
|
"content/webauthn/page-script": "./src/content/webauthn/page-script.ts",
|
||||||
"notification/bar": "./src/notification/bar.js",
|
"notification/bar": "./src/notification/bar.js",
|
||||||
"encrypt-worker": "../../libs/common/src/services/cryptography/encrypt.worker.ts",
|
"encrypt-worker": "../../libs/common/src/services/cryptography/encrypt.worker.ts",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user