Skip to content

Commit

Permalink
feat(CopyAndPaste): Adding clipboard permissions to iframe
Browse files Browse the repository at this point in the history
Adding clipboard permissions to iframe
  • Loading branch information
PlezBlip committed Feb 5, 2024
1 parent 488c4ca commit 48833fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ That's all :)
*For **publishing** purposes, download the script and make a reference to it locally. CDN may have availability problems and cause BLiP Chat instability.*

```html
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript"></script>
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript"></script>
<script>
(function () {
window.onload = function () {
Expand Down Expand Up @@ -65,7 +65,7 @@ new BlipChat()
Connecting on BLiP Chat passing user auth, account and event handlers.

```js
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript">
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript">
</script>
<script>
(function () {
Expand Down Expand Up @@ -110,7 +110,7 @@ Connecting on BLiP Chat passing user auth, account and event handlers.
Connect on BLiP Chat and set create account event to send chat state on the first time that the user is interacting with the bot.

```js
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript"></script>
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript"></script>
<script>
(function () {
window.onload = function () {
Expand All @@ -133,7 +133,7 @@ Connect on BLiP Chat and set create account event to send chat state on the firs
Connect on BLiP Chat and use a custom style.

```js
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript"></script>
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript"></script>
<script>
(function () {
window.onload = function () {
Expand Down Expand Up @@ -164,7 +164,7 @@ Connect on BLiP Chat and use a custom style.
Connect on BLiP Chat with a custom URL. Specifying how to use organizations in BLiP Chat Widget.

```js
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript"></script>
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript"></script>
<script>
(function () {
window.onload = function () {
Expand Down Expand Up @@ -246,7 +246,7 @@ blipClient.toogleChat();
Sends a message to your bot. The message can be a simple text or any LIME Protocol document. See example below:

```javascript
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript"></script>
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript"></script>
<script>
(function () {
window.onload = function () {
Expand All @@ -269,7 +269,7 @@ Sends a message to your bot. The message can be a simple text or any LIME Protoc
Sends a command. See example below:

```javascript
<script src="https://unpkg.com/blip-chat-widget@1.10.*" type="text/javascript"></script>
<script src="https://unpkg.com/blip-chat-widget@1.11.*" type="text/javascript"></script>
<script>
(function () {
window.onload = function () {
Expand Down
2 changes: 1 addition & 1 deletion src/BlipChatWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class BlipChatWidget {
self.blipChatIframe.setAttribute('src', url)
self.blipChatIframe.setAttribute('id', 'blip-chat-iframe')
self.blipChatIframe.setAttribute('frameborder', 0)
self.blipChatIframe.setAttribute('allow', 'geolocation; microphone')
self.blipChatIframe.setAttribute('allow', 'geolocation; microphone; clipboard-read; clipboard-write')
self.blipChatIframe.setAttribute('allowFullscreen', true)

self.blipChatIframe.onload = () => {
Expand Down

0 comments on commit 48833fe

Please sign in to comment.