aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/utils/injected-code.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/utils/injected-code.js')
-rw-r--r--config/webpack/utils/injected-code.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/webpack/utils/injected-code.js b/config/webpack/utils/injected-code.js
index f91fd4a..f2e51c8 100644
--- a/config/webpack/utils/injected-code.js
+++ b/config/webpack/utils/injected-code.js
@@ -7,7 +7,7 @@ import crypto from "crypto";
* @param {string} url - The URL to hash.
* @returns {string} A 16-character hex hash.
*/
-const getHash = url =>
+const getHash = (url) =>
crypto
.createHash("md5")
.update(url)
@@ -50,7 +50,7 @@ export function getInjectedCode(code) {
}
const extensionAssetsCode = Object.entries(extensionAssets).map(
- asset => `"${asset[0]}": chrome.runtime.getURL("${asset[1]}")`
+ (asset) => `"${asset[0]}": chrome.runtime.getURL("${asset[1]}")`
).join(",");
return [code, `{${extensionAssetsCode}}`];