Skip to content

Commit f08b08b

Browse files
committed
use serverWorkerLocation from settings if available
1 parent 5c50bf8 commit f08b08b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

integrations/appboy/lib/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ Appboy.prototype.initializeV2 = function(customEndpoint) {
203203
openNewsFeedCardsInNewTab: options.openNewsFeedCardsInNewTab,
204204
requireExplicitInAppMessageDismissal:
205205
options.requireExplicitInAppMessageDismissal,
206+
serviceWorkerLocation: options.serviceWorkerLocation,
206207
sessionTimeoutInSeconds: Number(options.sessionTimeoutInSeconds) || 30
207208
};
208209

@@ -322,10 +323,7 @@ Appboy.prototype.identify = function(identify) {
322323
// Remove nested hash objects as Braze only supports nested array objects in identify calls
323324
// https://segment.com/docs/destinations/braze/#identify
324325
each(function(value, key) {
325-
if (
326-
typeof value === 'object' &&
327-
Array.isArray(value)
328-
) {
326+
if (typeof value === 'object' && Array.isArray(value)) {
329327
delete traits[key];
330328
}
331329
}, traits);

0 commit comments

Comments
 (0)