diff --git a/README.md b/README.md index 9b0bfae2..c28e4a58 100755 --- a/README.md +++ b/README.md @@ -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) diff --git a/io-package.json b/io-package.json index ea18b676..8157231a 100644 --- a/io-package.json +++ b/io-package.json @@ -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", diff --git a/package.json b/package.json index ecfada06..c4f462e3 100644 --- a/package.json +++ b/package.json @@ -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": "habpanel@schaus.net" diff --git a/src/vendor/conn.js b/src/vendor/conn.js index 378b4b2d..4fb7d623 100644 --- a/src/vendor/conn.js +++ b/src/vendor/conn.js @@ -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, {