File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -142,30 +142,30 @@ function stopInterval() {
142
142
}
143
143
144
144
chrome . alarms . onAlarm . addListener ( ( alarm ) => {
145
- console . log ( 'alarm fired' ) ;
146
- console . log ( alarm ) ;
147
145
if ( alarm . name === 'checkIntervalAlarm' ) {
148
146
stopInterval ( ) ;
149
147
startInterval ( ) ;
150
148
}
151
149
} ) ;
152
150
153
151
chrome . runtime . onSuspend . addListener ( function ( ) {
154
- console . log ( 'unloading' ) ;
155
152
stopInterval ( ) ;
156
153
} ) ;
157
154
158
155
159
156
chrome . alarms . onAlarm . addListener ( ( alarm ) => {
160
- console . log ( 'alarm fired' ) ;
161
157
if ( alarm . name === 'checkIntervalAlarm' ) {
162
158
stopInterval ( ) ;
163
159
startInterval ( ) ;
164
160
}
165
161
} ) ;
166
162
167
163
chrome . runtime . onInstalled . addListener ( ( ) => {
168
- console . log ( 'installed' ) ;
169
164
startInterval ( ) ;
170
- chrome . alarms . create ( 'checkIntervalAlarm' , { periodInMinutes : 1 * 60000 } ) ;
165
+ chrome . alarms . create ( 'checkIntervalAlarm' , { periodInMinutes : 1 } ) ;
166
+ } ) ;
167
+
168
+ chrome . runtime . onStartup . addListener ( ( ) => {
169
+ startInterval ( ) ;
170
+ chrome . alarms . create ( 'checkIntervalAlarm' , { periodInMinutes : 1 } ) ;
171
171
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " IP Address & Geolocation" ,
3
- "version" : " 3.0.2 " ,
3
+ "version" : " 3.0.3 " ,
4
4
"manifest_version" : 3 ,
5
5
"icons" : {
6
6
"16" : " img/icon16.png" ,
You can’t perform that action at this time.
0 commit comments