File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ chrome.action.onClicked.addListener(async () => {
14
14
// 'popup' and 'sidebar' are handled by the browser
15
15
16
16
if ( position === 'tab' ) {
17
- chrome . tabs . create ( { url : chrome . runtime . getURL ( 'index.html?type=tab ' ) } ) ;
17
+ chrome . tabs . create ( { url : chrome . runtime . getURL ( 'index.html' ) } ) ;
18
18
return ;
19
19
}
20
20
@@ -24,7 +24,7 @@ chrome.action.onClicked.addListener(async () => {
24
24
const currentWindow = await chrome . windows . getCurrent ( ) ;
25
25
await chrome . windows . create ( {
26
26
type : 'popup' ,
27
- url : chrome . runtime . getURL ( 'index.html?type=window ' ) ,
27
+ url : chrome . runtime . getURL ( 'index.html?auto-fit=true ' ) ,
28
28
width,
29
29
height,
30
30
top : currentWindow . top + Math . round ( ( currentWindow . height - height ) / 2 ) ,
@@ -36,4 +36,4 @@ chrome.action.onClicked.addListener(async () => {
36
36
matchOptions ( ) ;
37
37
38
38
// DEVELOPMENT MODE: uncomment this so the tab will reopen on extension reload
39
- // chrome.tabs.create({url:'chrome-extension://aknaajkpkdhfnbdfopjlkpkmajdckgfk/index.html?type=tab '})
39
+ // chrome.tabs.create({url:'chrome-extension://aknaajkpkdhfnbdfopjlkpkmajdckgfk/index.html'})
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ new App({
5
5
target : document . body ,
6
6
} ) ;
7
7
8
- const type = new URLSearchParams ( location . search ) . get ( 'type' ) ;
9
- document . documentElement . dataset . type = type ;
10
- if ( type === 'window' ) {
8
+ const autoFit = new URLSearchParams ( location . search ) . has ( 'auto-fit' ) ;
9
+ if ( autoFit ) {
11
10
fitWindow ( ) ;
12
11
}
13
12
Original file line number Diff line number Diff line change 13
13
},
14
14
"action" : {
15
15
"default_icon" : " logo.png" ,
16
- "default_popup" : " index.html?type=popup "
16
+ "default_popup" : " index.html"
17
17
},
18
18
"side_panel" : {
19
19
"default_path" : " index.html"
You can’t perform that action at this time.
0 commit comments