From 2c6834a18f02fc6ad7792e34ad2db3f01289aec7 Mon Sep 17 00:00:00 2001 From: Adam Millerchip Date: Thu, 18 Jul 2019 13:36:46 +0900 Subject: [PATCH] Add URL button --- index.html | 3 ++- meetup-liff.js | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 7cfa45c..6576f50 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,7 @@

{{ profile.statusMessage }}

+ @@ -42,7 +43,7 @@ integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"> - + \ No newline at end of file diff --git a/meetup-liff.js b/meetup-liff.js index fe4bb64..f7a3240 100644 --- a/meetup-liff.js +++ b/meetup-liff.js @@ -54,6 +54,12 @@ function share() { } ] } - }]) - .then(() => liff.closeWindow(), err => app.error = err) + }]).then(() => liff.closeWindow(), err => app.error = err) +} + +function url() { + liff.sendMessages([{ + "type": "text", + "text": "Endpoint: https://adamu.github.io/line_dm_liff/\nRepository: https://github.com/adamu/line_dm_liff" + }]).then(() => liff.closeWindow(), err => app.error = err) } \ No newline at end of file