Add version to JS (#839)

* Add version to JS

* Throw if version wasn't found
This commit is contained in:
Andrey
2018-01-26 23:27:11 -08:00
committed by Paulus Schoutsen
parent c11a525a2d
commit 13f8fa7e11
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ window.HAWS = HAWS;
window.HASS_DEMO = __DEMO__;
window.HASS_DEV = __DEV__;
window.HASS_BUILD = __BUILD__;
window.HASS_VERSION = __VERSION__;
const init = window.createHassConnection = function (password) {
const proto = window.location.protocol === 'https:' ? 'wss' : 'ws';