-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.js
40 lines (38 loc) · 948 Bytes
/
manifest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const fs = require("fs");
const packageJson = require("./package.json");
const manifest = {
name: "Kondor",
description: "Koinos Wallet in your browser",
version: packageJson.version,
manifest_version: 3,
permissions: ["storage"],
background: {
service_worker: "js/background.js",
},
content_scripts: [
{
matches: ["https://*/*", "http://*/*"],
js: ["js/content.js"],
},
],
action: {
default_popup: "index.html",
default_icon: {
16: "/images/kondor-16.png",
32: "/images/kondor-32.png",
48: "/images/kondor-48.png",
128: "/images/kondor-128.png",
},
},
sandbox: {
pages: ["sandbox.html"],
},
icons: {
16: "/images/kondor-16.png",
32: "/images/kondor-32.png",
48: "/images/kondor-48.png",
128: "/images/kondor-128.png",
},
options_page: "options.html",
};
fs.writeFileSync("./public/manifest.json", JSON.stringify(manifest, null, 2));