-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.js
46 lines (43 loc) · 868 Bytes
/
store.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
42
43
44
45
46
const Store = require('electron-store');
const schema = {
width: {
type: 'number',
default: 1400,
minimum: 100
},
height: {
type: 'number',
default: 800,
minimum: 100
},
serverSelected: {
type: 'string',
default: "hello"
},
serverInfo: {
type: "object",
default:
{
"Studio Red": {
protocol: "http://",
host: "studio1.ury.york.ac.uk",
port: 13500,
suffix: "/presenter/"
},
"Studio Blue": {
protocol: "http://",
host: "studio2.ury.york.ac.uk",
port: 13500,
suffix: "/presenter/"
},
"Localhost (Dev)": {
protocol: "http://",
host: "localhost",
port: 13500,
suffix: "/presenter/"
}
}
}
};
const store = new Store({schema});
exports.store = store