mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[EC-598] feat: scaffold content scripting
This commit is contained in:
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/autofiller.js",
|
||||
"content/notificationBar.js",
|
||||
"content/contextMenuHandler.js"
|
||||
"content/contextMenuHandler.js",
|
||||
"content/webauthn/content-script.js"
|
||||
],
|
||||
"matches": ["http://*/*", "https://*/*", "file:///*"],
|
||||
"run_at": "document_start"
|
||||
@@ -98,6 +99,7 @@
|
||||
}
|
||||
},
|
||||
"web_accessible_resources": [
|
||||
"content/webauthn/page-script.js",
|
||||
"notification/bar.html",
|
||||
"images/icon38.png",
|
||||
"images/icon38_locked.png"
|
||||
|
||||
@@ -106,7 +106,12 @@
|
||||
},
|
||||
"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>"]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -141,6 +141,8 @@ const mainConfig = {
|
||||
"content/notificationBar": "./src/content/notificationBar.ts",
|
||||
"content/contextMenuHandler": "./src/content/contextMenuHandler.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",
|
||||
"encrypt-worker": "../../libs/common/src/services/cryptography/encrypt.worker.ts",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user