Skip to content

Commit 01c4e64

Browse files
committed
Make it fall back to the other options/a base64Id, if the device Id is not available in the params via amp_device_id. amplitude#302
1 parent abff3e3 commit 01c4e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amplitude-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ AmplitudeClient.prototype._getInitialDeviceId = function (configDeviceId, stored
284284

285285
if (this.options.deviceIdFromUrlParam) {
286286
let deviceIdFromUrlParam = this._getDeviceIdFromUrlParam(this._getUrlParams());
287-
if(deviceIdFromUrlParam) {
287+
if (deviceIdFromUrlParam) {
288288
return deviceIdFromUrlParam;
289289
}
290290
}

0 commit comments

Comments
 (0)