1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Add version to JS (#839)

* Add version to JS

* Throw if version wasn't found
This commit is contained in:
Andrey
2018-01-27 09:27:11 +02:00
committed by Paulus Schoutsen
parent c11a525a2d
commit 13f8fa7e11
3 changed files with 9 additions and 0 deletions

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';