File tree Expand file tree Collapse file tree 7 files changed +10
-8
lines changed Expand file tree Collapse file tree 7 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 8484 },
8585 {
8686 "path" : " ./build/releases/OneSignalSDK.page.es6.js" ,
87- "limit" : " 46.23 kB" ,
87+ "limit" : " 45.63 kB" ,
8888 "gzip" : true
8989 },
9090 {
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
1313} from 'src/shared/listeners' ;
1414import { IDManager } from 'src/shared/managers/IDManager' ;
1515import type { EventsMap } from 'src/shared/services/types' ;
16- import type { UserSubscription } from 'src/shared/subscriptions/types' ;
1716import { EventListenerBase } from '../page/userModel/EventListenerBase' ;
1817import Log from '../shared/libraries/Log' ;
1918import { isCompleteSubscriptionObject } from '../shared/managers/utils' ;
Original file line number Diff line number Diff line change 11import type { UserEventsMap } from 'src/shared/services/types' ;
2- import type { UserSubscription } from 'src/shared/subscriptions/types' ;
32import type { UserChangeEvent } from '../page/models/UserChangeEvent' ;
43import { EventListenerBase } from '../page/userModel/EventListenerBase' ;
54import Emitter from '../shared/libraries/Emitter' ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { ContextInterface } from 'src/shared/context/types';
22import { delay } from 'src/shared/helpers/general' ;
33import { registerForPushNotifications } from 'src/shared/helpers/init' ;
44import { getLocalPageViewCount } from 'src/shared/helpers/localStorage' ;
5+ import Log from 'src/shared/libraries/Log' ;
56import {
67 CONFIG_DEFAULTS_SLIDEDOWN_OPTIONS ,
78 DelayedPromptType ,
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ export class SlidedownManager {
468468 this . _slidedown = new Slidedown ( slidedownPromptOptions ) ;
469469 await this . _slidedown . _create ( options . isInUpdateMode ) ;
470470 await this . _mountAuxiliaryContainers ( options ) ;
471- debug ( 'Showing OneSignal Slidedown' ) ;
471+ Log . _debug ( 'Showing OneSignal Slidedown' ) ;
472472 Slidedown . _triggerSlidedownEvent ( 'slidedownShown' ) ;
473473 } catch ( e ) {
474474 Log . _error ( 'There was an error showing the OneSignal Slidedown:' , e ) ;
Original file line number Diff line number Diff line change 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' ;
54import { db , getOptionsValue } from './database/client' ;
65import { getAppState , setAppState } from './database/config' ;
76import { decodeHtmlEntities } from './helpers/dom' ;
@@ -161,10 +160,14 @@ async function onSubscriptionChanged_evaluateNotifyButtonDisplayPredicate() {
161160 ) {
162161 const predicateResult = await displayPredicate ( ) ;
163162 if ( predicateResult !== false ) {
164- debug ( 'Showing notify button because display predicate returned true.' ) ;
163+ Log . _debug (
164+ 'Showing notify button because display predicate returned true.' ,
165+ ) ;
165166 OneSignal . _notifyButton . _launcher . _show ( ) ;
166167 } else {
167- debug ( 'Hiding notify button because display predicate returned false.' ) ;
168+ Log . _debug (
169+ 'Hiding notify button because display predicate returned false.' ,
170+ ) ;
168171 OneSignal . _notifyButton . _launcher . _hide ( ) ;
169172 }
170173 }
Original file line number Diff line number Diff line change 1- import { debug } from 'src/shared/libraries/log' ;
21import { containsMatch } from '../context/helpers' ;
32import { windowEnvString } from '../environment/detect' ;
3+ import Log from '../libraries/Log' ;
44import { IS_SERVICE_WORKER } from '../utils/env' ;
55import type { EventsMap } from './types' ;
66
You can’t perform that action at this time.
0 commit comments