Comparing version 1.4.0 to 1.4.1
@@ -350,3 +350,3 @@ 'use strict'; | ||
Botly.prototype.createWebURLButton = function (title, url, heightRatio, supportExtension, fallbackURL) { | ||
Botly.prototype.createWebURLButton = function (title, url, heightRatio, supportExtension, fallbackURL, shareDisabled) { | ||
if (typeof title === 'object') { | ||
@@ -373,2 +373,5 @@ fallbackURL = title.fallbackURL; | ||
} | ||
if (shareDisabled) { | ||
button.webview_share_button = 'hide'; | ||
} | ||
return button; | ||
@@ -375,0 +378,0 @@ }; |
{ | ||
"name": "botly", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Simple Facebook Messenger Bot API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
<img src="https://raw.githubusercontent.com/miki2826/botly/master/botly_logo.png" width="250" height="250" /> | ||
--------- | ||
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.svg)](http://gruntjs.com/) | ||
@@ -35,3 +35,3 @@ [![Build Status](https://travis-ci.org/Askrround/botly.svg)](https://travis-ci.org/Askrround/botly) | ||
- [getPSID (accountLinkingToken[, callback])](#getpsid-accountlinkingtoken-callback) | ||
- [createWebURLButton (title, url)](#createweburlbutton-title-url) | ||
- [createWebURLButton (title, url[, heightRatio][, supportExtension][, fallbackURL][, disableShare])](#createweburlbutton-title-url-heightratio-supportextension-fallbackurl-disableshare) | ||
- [createAccountLinkButton (url)](#createaccountlinkbutton-url) | ||
@@ -347,3 +347,3 @@ - [createPostbackButton (title, payload)](#createpostbackbutton-title-payload) | ||
#### createWebURLButton (title, url[, heightRatio][, supportExtension][, fallbackURL]) | ||
#### createWebURLButton (title, url[, heightRatio][, supportExtension][, fallbackURL][, disableShare]) | ||
@@ -350,0 +350,0 @@ #### createAccountLinkButton (url) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2089
120706
21