File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ async function initialize() {
14
14
if ( options . icons ) document . querySelector ( '.nap-room img' ) . src = `../icons/${ options . icons } /nap-room.png` ;
15
15
16
16
try { updateFormValues ( options ) } catch ( e ) { }
17
-
18
- chrome . storage . onChanged . addListener ( async changes => {
19
- if ( changes . snoozedOptions && changes . snoozedOptions . newValue ) updateFormValues ( changes . snoozedOptions . newValue ) ;
20
- } ) ;
21
17
22
18
addListeners ( ) ;
23
19
await fetchHourFormat ( ) ;
@@ -98,6 +94,7 @@ function addListeners() {
98
94
}
99
95
100
96
async function save ( e ) {
97
+ e . stopPropagation ( ) ;
101
98
if ( e && e . target . id === 'history' ) {
102
99
var tabs = await getSnoozedTabs ( ) ;
103
100
var count = tabs . filter ( t => t . opened && dayjs ( ) . isAfter ( dayjs ( t . opened ) . add ( e . target . value , 'd' ) ) ) . length ;
You can’t perform that action at this time.
0 commit comments