Skip to content

Commit

Permalink
0.4.1 ... try use windows.location ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Feb 10, 2020
1 parent 136066d commit 7602edc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ This adapter cannot be installed directly from github. Only from npm.

## Changelog

### 0.3.6 (2020-02-09)
### 0.4.1 (2020-02-10)
* (Apollon77) compatibility to web 3.0

### 0.3.5 (2019-04-15)
Expand Down
4 changes: 2 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"common": {
"name": "habpanel",
"version": "0.4.0",
"version": "0.4.1",
"news": {
"0.4.0": {
"0.4.1": {
"en": "compatibility with Web >= 3.0.0 added",
"de": "Kompatibilität mit Web >= 3.0.0 hinzugefügt",
"ru": "добавлена совместимость с Web >= 3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iobroker.habpanel",
"description": "Dashboard based on HABPanel",
"version": "0.4.0",
"version": "0.4.1",
"author": {
"name": "Yannick Schaus",
"email": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions src/vendor/conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ var servConn = {
if (connLink) {
url = connLink;
if (typeof connLink !== 'undefined') {
if (connLink[0] === ':') connLink = location.protocol + '//' + location.hostname + connLink;
if (connLink[0] === ':') connLink = window.location.protocol + '//' + window.location.hostname + connLink;
}
} else {
url = location.protocol + '//' + location.host;
url = window.location.protocol + '//' + window.location.host;
}

this._socket = io.connect(url, {
Expand Down

0 comments on commit 7602edc

Please sign in to comment.