Skip to content

Commit

Permalink
Merge pull request #259 from rudderlabs/production-staging
Browse files Browse the repository at this point in the history
  • Loading branch information
arnab-p authored Jun 21, 2021
2 parents 2437d49 + 8b63f86 commit 0154004
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ You can also refer to the sample projects for a walkthrough of the above: [Sampl

**SDK-supported Browser Versions**

- Safari >=6
- Safari >=7
- IE >=10
- Edge >=15
- Mozilla >=40
Expand Down
6 changes: 4 additions & 2 deletions utils/RudderContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ class RudderContext {
this.locale = null;
} else {
// running within browser
screen.width = window.width;
screen.height = window.height;
screen.width = window.screen.width;
screen.height = window.screen.height;
screen.density = window.devicePixelRatio;
this.userAgent = navigator.userAgent;
// property name differs based on browser version
this.locale = navigator.language || navigator.browserLanguage;
screen.innerWidth = window.innerWidth;
screen.innerHeight = window.innerHeight;
}
this.os = os;
this.screen = screen;
Expand Down
2 changes: 2 additions & 0 deletions utils/RudderInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class RudderScreenInfo {
this.density = 0;
this.width = 0;
this.height = 0;
this.innerWidth = 0;
this.innerHeight = 0;
}
}
// Device information class
Expand Down

0 comments on commit 0154004

Please sign in to comment.