From c2f06581491d771c4012227253ae21e7a62722a2 Mon Sep 17 00:00:00 2001 From: Raj Kumar Date: Fri, 19 Aug 2022 16:29:16 +0530 Subject: [PATCH 1/3] include files in package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a243b18..1769c42 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.13", "description": "", "main": "index.js", + "files": ["index.js"], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, From 56ef106df2a6534e4a4c5d2de40e4109316c42da Mon Sep 17 00:00:00 2001 From: Raj Kumar Date: Fri, 19 Aug 2022 16:30:17 +0530 Subject: [PATCH 2/3] 1.0.14 --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1769c42..2b59365 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,11 @@ { "name": "react-mobile-share", - "version": "1.0.13", + "version": "1.0.14", "description": "", "main": "index.js", - "files": ["index.js"], + "files": [ + "index.js" + ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, From 22d885d7df45e99981b96099348d9d49ba2bc22c Mon Sep 17 00:00:00 2001 From: Raj Kumar Date: Thu, 15 Sep 2022 14:17:59 +0530 Subject: [PATCH 3/3] update index.js --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index 4e04098..887751a 100644 --- a/index.js +++ b/index.js @@ -26,10 +26,7 @@ exports.shareOnMobile = function ({ url, title, image }) { return; } - var shareData = { text: "" }; - if (title) { - shareData.title = title; - } + var shareData = { text: title, title }; if (url) { shareData.url = url; }