Skip to content

Commit 4e1f8f5

Browse files
authored
Merge pull request #13 from logicwind/dev
Fixed the crash issue on trackMedia function while pass dimension option.
2 parents fb3f2fb + 17dab44 commit 4e1f8f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@logicwind/react-native-matomo-tracker",
3-
"version": "0.3.8",
3+
"version": "0.3.9",
44
"description": "React-native plugin for matomo analytics",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function trackCampaign(title:String,campaignUrl:String,actionDimensions?:
8383
}
8484

8585
export function trackMediaEvent(
86-
{siteId,mediaId,mediaTitle,playerName,mediaType,mediaResource,mediaStatus,mediaLength="",mediaProgress="",mediaTTP="",mediaWidth="",mediaHeight="",mediaSE="",mediaFullScreen="",dimension}:{
86+
{siteId,mediaId,mediaTitle,playerName,mediaType,mediaResource,mediaStatus,mediaLength="",mediaProgress="",mediaTTP="",mediaWidth="",mediaHeight="",mediaSE="",mediaFullScreen="",dimension=[]}:{
8787
siteId: String,
8888
mediaId: String,
8989
mediaTitle: String,

0 commit comments

Comments
 (0)