diff options
author | Sadoon AlBader <sadoon@soulserv.xyz> | 2021-09-25 10:15:17 +0300 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2021-10-15 23:07:18 +0100 |
commit | 0857582e39260728eb13b1d4d0d13d569accd85e (patch) | |
tree | 6eac751b5a7ba052ae5c16d71de76122d3c3d471 | |
parent | 0243f6a4986298b40cc078022b595a002c7d155b (diff) |
use macros instead of reinventing the wheel
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -640,6 +640,13 @@ void vb_statusbar_update(Client *c) c->state.scroll_percent = * (guint16*) ( &c->state.scroll_percent ); #endif + if ( c->config.statusbar_show_settings ) { + /* show js, cookies, and local storage status */ + g_string_append_printf(status, " js: %s |", GET_BOOL(c, "scripts") ? "on" : "off"); + g_string_append_printf(status, " cookies: %s |", GET_CHAR(c, "cookie-accept") ); + g_string_append_printf(status, " storage: %s", GET_BOOL(c, "html5-local-storage") ? "on" : "off"); + } + /* show the scroll status */ if (c->state.scroll_max == 0) { g_string_append(status, " All"); |