From 5030ad4021bf0965c74f80d03108b53a41f5beaa Mon Sep 17 00:00:00 2001 From: Beaudan Date: Thu, 28 Feb 2019 17:15:14 +1100 Subject: [PATCH] Made the slider label populate as well, plus removed redundant window function --- js/views/settings_view.js | 1 + preload.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/settings_view.js b/js/views/settings_view.js index 9cadfc4b3..9cb46c865 100644 --- a/js/views/settings_view.js +++ b/js/views/settings_view.js @@ -71,6 +71,7 @@ }, populate() { this.$('input').val(this.value); + this.$('label').html(`${this.value} Hours`); }, }); diff --git a/preload.js b/preload.js index a01aec06f..9f7f90f8e 100644 --- a/preload.js +++ b/preload.js @@ -160,7 +160,6 @@ installGetter('hide-menu-bar', 'getHideMenuBar'); installSetter('hide-menu-bar', 'setHideMenuBar'); // Get the message TTL setting -window.getMessageTTL = () => window.storage.get('message-ttl', 24); installGetter('message-ttl', 'getMessageTTL'); installSetter('message-ttl', 'setMessageTTL');