File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script >
2
+ // Silence warnings https://github.com/sveltejs/svelte/issues/4652#issuecomment-1666893821
3
+ // eslint-disable-next-line no-unused-expressions
4
+ $$restProps;
5
+
2
6
import openInTab from ' ./lib/open-in-tab.js' ;
3
7
import trimName from ' ./lib/trim-name.js' ;
4
8
8
12
export let enabled;
9
13
export let installType;
10
14
export let homepageUrl;
11
- export let updateUrl;
15
+ export let updateUrl; // Optional
12
16
export let optionsUrl;
13
- export let icons;
17
+ export let icons; // Optional
14
18
export let showExtras;
15
19
export let undoStack;
16
20
26
30
return homepageUrl;
27
31
}
28
32
29
- return updateUrl .startsWith (' https://edge.microsoft.com' )
33
+ return updateUrl? .startsWith (' https://edge.microsoft.com' )
30
34
? edgeWebStoreUrl
31
35
: chromeWebStoreUrl;
32
36
}
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ if (autoFit) {
11
11
fitWindow ( ) ;
12
12
}
13
13
14
- chrome . runtime . sendMessage ( 'thisTownIsTooSmallForTheTwoOfUs' ) ;
14
+ chrome . runtime . sendMessage ( 'thisTownIsTooSmallForTheTwoOfUs' ) . catch ( ( ) => {
15
+ // No other windows open, good!
16
+ } ) ;
15
17
chrome . runtime . onMessage . addListener ( message => {
16
18
if ( message === 'thisTownIsTooSmallForTheTwoOfUs' ) {
17
19
window . close ( ) ;
You can’t perform that action at this time.
0 commit comments