From d1fa2340dd984dcbb9048a4df8097c2ba6d9a745 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 23 May 2017 22:29:11 +0200 Subject: [PATCH] Change default user-agent. Use the user-agent that would be created by webkit_settings_set_user_agent_with_application_details. --- src/setting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setting.c b/src/setting.c index ab36427..e3cabdd 100644 --- a/src/setting.c +++ b/src/setting.c @@ -78,7 +78,7 @@ void setting_init(Client *c) * Separate the setting definition from the data. * Don't set the webkit settings if they are the default on startup. */ c->config.settings = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify)setting_free); - setting_add(c, "useragent", TYPE_CHAR, &"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/603.1 (KHTML, like Gecko) " PROJECT "/" VERSION " Version/10.0 Safari/603.1", webkit, 0, "user-agent"); + setting_add(c, "useragent", TYPE_CHAR, &"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/604.1 (KHTML, like Gecko) Version/11.0 Safari/604.1 " PROJECT "/" VERSION, webkit, 0, "user-agent"); /* TODO use the real names for webkit settings */ i = 14; setting_add(c, "accelerated-2d-canvas", TYPE_BOOLEAN, &off, webkit, 0, "enable-accelerated-2d-canvas"); -- 2.20.1