diff --git a/preload.js b/preload.js index 9d0cfe5f8..0942eaf55 100644 --- a/preload.js +++ b/preload.js @@ -161,6 +161,7 @@ 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');