Skip to content

Commit efcfeae

Browse files
committed
Adding support for maxmized windows
1 parent bc28323 commit efcfeae

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

manifest.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Centralizer",
4-
"version": "1.0",
4+
"version": "1.1",
55
"description": "Move and resize your window to be central in your monitor",
66
"icons": {
77
"16": "images/icon.png",
@@ -10,10 +10,7 @@
1010
"128": "images/icon.png"
1111
},
1212
"permissions": [
13-
"system.display",
14-
"tabs",
15-
"activeTab",
16-
"scripting"
13+
"system.display"
1714
],
1815
"action": {},
1916
"background": {
@@ -22,8 +19,8 @@
2219
"commands": {
2320
"centralize": {
2421
"suggested_key": {
25-
"default": "Ctrl+Shift+C",
26-
"mac": "Command+Shift+C"
22+
"default": "Alt+Shift+C",
23+
"mac": "Alt+Shift+C"
2724
},
2825
"description": "Centralize the current window."
2926
}

scripts/background.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function centralize() {
2020
width: toBeWidth,
2121
height: toBeHeight,
2222
left: leftPos,
23-
top: topPos
23+
top: topPos,
24+
state: 'normal'
2425
});
2526
}
2627
});

0 commit comments

Comments
 (0)