-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground.js
42 lines (38 loc) · 861 Bytes
/
background.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
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'bounds': {
'width': 1000,
'height': 650
},
frame: { type: "none" } // Make own close buttons, etc.
});
// Menu when right click on header
chrome.contextMenus.create({
title: "New",
id: "context-new"
});
chrome.contextMenus.create({
title: "Open",
id: "context-open"
});
chrome.contextMenus.create({
title: "Save",
id: "context-save"
});
chrome.contextMenus.create({
title: "Save As",
id: "context-saveas"
});
chrome.contextMenus.create({
title: "Settings",
id: "context-settings"
});
chrome.contextMenus.create({
title: "Close Current Tab",
id: "context-close-current-tab"
});
chrome.contextMenus.create({
title: "Exit",
id: "context-exit"
});
});