File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- import { throttle } from "throttle-debounce" ;
1+ import { debounce } from "throttle-debounce" ;
22import * as Notifications from "../elements/notifications" ;
33import * as ConnectionEvent from "../observables/connection-event" ;
44import * as TestState from "../test/test-state" ;
@@ -29,12 +29,12 @@ export function showOfflineBanner(): void {
2929 }
3030}
3131
32- const throttledHandleState = throttle ( 10000 , ( ) => {
32+ const throttledHandleState = debounce ( 5000 , ( ) => {
3333 if ( state ) {
34- Notifications . add ( "You're back online" , 1 , {
35- customTitle : "Connection" ,
36- } ) ;
3734 if ( noInternetBannerId !== undefined ) {
35+ Notifications . add ( "You're back online" , 1 , {
36+ customTitle : "Connection" ,
37+ } ) ;
3838 $ (
3939 `#bannerCenter .banner[id="${ noInternetBannerId } "] .closeButton`
4040 ) . trigger ( "click" ) ;
You can’t perform that action at this time.
0 commit comments