From bd9d9e88158c890a73303eedd533739f1406527c Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 5 Dec 2015 00:13:54 -0800 Subject: [PATCH] Move removing init message back to root component --- src/home-assistant.js | 6 ++++++ src/layouts/login-form.js | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/home-assistant.js b/src/home-assistant.js index 4af9d7704d..1d9b257af4 100644 --- a/src/home-assistant.js +++ b/src/home-assistant.js @@ -77,4 +77,10 @@ export default new Polymer({ this.loadIcons(); }, + + attached() { + // remove the HTML init message + const initMsg = document.getElementById('init'); + initMsg.parentElement.removeChild(initMsg); + }, }); diff --git a/src/layouts/login-form.js b/src/layouts/login-form.js index 9c732e6af9..539ff4df3c 100644 --- a/src/layouts/login-form.js +++ b/src/layouts/login-form.js @@ -84,10 +84,4 @@ export default new Polymer({ validateAuth(this.$.passwordInput.value, this.$.rememberLogin.checked); }, - - attached() { - // remove the HTML init message - const initMsg = document.getElementById('init'); - initMsg.parentElement.removeChild(initMsg); - }, });