Change default user-agent.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 23 May 2017 20:29:11 +0000 (22:29 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 23 May 2017 20:29:11 +0000 (22:29 +0200)
Use the user-agent that would be created by
webkit_settings_set_user_agent_with_application_details.

src/setting.c

index ab36427..e3cabdd 100644 (file)
@@ -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");