Skip to content

Commit

Permalink
Merge pull request #238 from pratyush0103/pratyush-web-null-check
Browse files Browse the repository at this point in the history
Added null check for empty constants object incase of web
  • Loading branch information
zihejia authored May 4, 2024
2 parents 3d0c79b + e6cd372 commit e9ce53c
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 e9ce53c

Please sign in to comment.