11import UserNamespace from 'src/onesignal/UserNamespace' ;
22import type { SubscriptionChangeEvent } from 'src/page/models/SubscriptionChangeEvent' ;
33import type { UserChangeEvent } from 'src/page/models/UserChangeEvent' ;
4+ import { debug , info } from 'src/shared/libraries/log' ;
45import { db , getOptionsValue } from './database/client' ;
56import { getAppState , setAppState } from './database/config' ;
67import { decodeHtmlEntities } from './helpers/dom' ;
@@ -15,7 +16,6 @@ import { isCategorySlidedownConfigured } from './prompts/helpers';
1516import { limitStorePut } from './services/limitStore' ;
1617import OneSignalEvent from './services/OneSignalEvent' ;
1718import { logMethodCall } from './utils/utils' ;
18- import { debug , info } from 'src/shared/libraries/log' ;
1919
2020export async function checkAndTriggerSubscriptionChanged ( ) {
2121 logMethodCall ( 'checkAndTriggerSubscriptionChanged' ) ;
@@ -160,14 +160,10 @@ async function onSubscriptionChanged_evaluateNotifyButtonDisplayPredicate() {
160160 ) {
161161 const predicateResult = await displayPredicate ( ) ;
162162 if ( predicateResult !== false ) {
163- debug (
164- 'Showing notify button because display predicate returned true.' ,
165- ) ;
163+ debug ( 'Showing notify button because display predicate returned true.' ) ;
166164 OneSignal . _notifyButton . _launcher . _show ( ) ;
167165 } else {
168- debug (
169- 'Hiding notify button because display predicate returned false.' ,
170- ) ;
166+ debug ( 'Hiding notify button because display predicate returned false.' ) ;
171167 OneSignal . _notifyButton . _launcher . _hide ( ) ;
172168 }
173169 }
0 commit comments