diff --git a/src/core/executors/ExecutorStore.ts b/src/core/executors/ExecutorStore.ts index 0353fd215..1ad9cf4c9 100644 --- a/src/core/executors/ExecutorStore.ts +++ b/src/core/executors/ExecutorStore.ts @@ -20,7 +20,7 @@ export class ExecutorStore { // call processDeltaQueue on all executors immediately public forceDeltaQueueProcessingOnAllExecutors(): void { - var didSubscriptionExecutorProcessDeltaQueue = false; + let didSubscriptionExecutorProcessDeltaQueue = false; Object.values(this.store).forEach((executor) => { if ( diff --git a/src/shared/api/OneSignalApiBase.ts b/src/shared/api/OneSignalApiBase.ts index 6645342ba..dbdd89a1c 100644 --- a/src/shared/api/OneSignalApiBase.ts +++ b/src/shared/api/OneSignalApiBase.ts @@ -71,7 +71,6 @@ export class OneSignalApiBase { callHeaders.append('SDK-Version', `onesignal/web/${Environment.version()}`); callHeaders.append('Content-Type', 'application/json;charset=UTF-8'); - if (headers) { headers.forEach((value, key) => { callHeaders.append(key, value); diff --git a/src/shared/services/OneSignalEvent.ts b/src/shared/services/OneSignalEvent.ts index ae2a82215..ccb51ab51 100755 --- a/src/shared/services/OneSignalEvent.ts +++ b/src/shared/services/OneSignalEvent.ts @@ -29,7 +29,7 @@ export default class OneSignalEvent { static async trigger(eventName: string, data?: any, emitter?: Emitter) { if (!Utils.contains(SILENT_EVENTS, eventName)) { const displayData = data; - let env = Utils.capitalize(SdkEnvironment.getWindowEnv().toString()); + const env = Utils.capitalize(SdkEnvironment.getWindowEnv().toString()); if (displayData || displayData === false) { Log.debug(`(${env}) ยป ${eventName}:`, displayData);