1
0
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:
Andreas Coroiu 2022-11-18 09:47:49 +01:00
parent 166e5a747e
commit ac3cd6ab6a
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A
5 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,2 @@
// eslint-disable-next-line no-console
console.log("content-script loaded");

View File

@ -0,0 +1,2 @@
// eslint-disable-next-line no-console
console.log("page-script loaded");

View File

@ -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"

View File

@ -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>"]
} }
], ],

View File

@ -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",
}, },