Skip to content

Commit

Permalink
Added null check for empty constants object incase of web
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyush committed Apr 17, 2024
1 parent f13fae2 commit e6cd372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/mixpanel-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class MixpanelMain {

getMetaData() {
const {OS, Version, constants} = Platform;
const {Brand, Manufacturer, Model} = constants;
const {Brand, Manufacturer, Model} = constants || {};

let metadata = {
$os: OS,
Expand Down

0 comments on commit e6cd372

Please sign in to comment.