-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
manifest.js
41 lines (37 loc) · 1.09 KB
/
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
41
const fs = require("fs");
const dotenv = require("dotenv");
const packageJson = require("./package.json");
dotenv.config();
const testMode = process.argv[2] === "development";
const icons = {
16: testMode ? "/images/kondor-beta-16.png" : "/images/kondor-16.png",
32: testMode ? "/images/kondor-beta-32.png" : "/images/kondor-32.png",
48: testMode ? "/images/kondor-beta-48.png" : "/images/kondor-48.png",
128: testMode ? "/images/kondor-beta-128.png" : "/images/kondor-128.png",
};
const manifest = {
name: "Kondor",
description: "Koinos Wallet in your browser",
version: testMode ? "0.91.5" : packageJson.version,
manifest_version: 3,
permissions: ["storage", "windows"],
background: {
service_worker: "js/background.js",
},
content_scripts: [
{
matches: ["https://*/*", "http://*/*"],
js: ["js/content.js"],
},
],
action: {
default_popup: "index.html",
default_icon: icons,
},
sandbox: {
pages: ["sandbox.html"],
},
icons,
options_page: "options.html",
};
fs.writeFileSync("./public/manifest.json", JSON.stringify(manifest, null, 2));