Skip to content

Commit

Permalink
AlanButton should work with subdomain if the app is running on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
annmirosh committed Nov 11, 2020
1 parent 07201e1 commit fc9b5f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/alan_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -2358,7 +2358,7 @@ function alanBtn(options) {
isSecure = true;
}

if (protocol === 'http:' && (hostname === 'localhost' || hostname === '127.0.0.1')) {
if (protocol === 'http:' && (hostname.indexOf('localhost') > -1 || hostname.indexOf('127.0.0.1') > -1)) {
isSecure = true;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/alan_lib.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alan-ai/alan-sdk-web",
"version": "1.8.3",
"version": "1.8.4",
"description": "Alan Web SDK: a lightweight JavaScript library for adding a voice experience to your website or web application",
"keywords": [
"alan sdk web",
Expand Down

0 comments on commit fc9b5f7

Please sign in to comment.