mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[quickjs] navigator fixes
This commit is contained in:
parent
fe4136a423
commit
10d2fb6c2b
@ -115,7 +115,7 @@ js_navigator_get_property_userAgent(JSContext *ctx, JSValueConst this_val)
|
||||
|
||||
if (*optstr && strcmp(optstr, " ")) {
|
||||
char *ustr, ts[64] = "";
|
||||
static unsigned char custr[256];
|
||||
static char custr[256];
|
||||
/* TODO: Somehow get the terminal in which the
|
||||
* document is actually being displayed. */
|
||||
struct terminal *term = get_default_terminal();
|
||||
|
@ -286,7 +286,7 @@ init_accept_charset(void)
|
||||
|
||||
|
||||
char *
|
||||
subst_user_agent(char *fmt, char *version,
|
||||
subst_user_agent(char *fmt, const char *version,
|
||||
char *sysname, char *termsize)
|
||||
{
|
||||
struct string agent;
|
||||
|
@ -49,7 +49,7 @@ extern protocol_handler_T proxy_protocol_handler;
|
||||
struct http_connection_info *init_http_connection_info(struct connection *conn, int major, int minor, int close);
|
||||
void http_got_header(struct socket *, struct read_buffer *);
|
||||
|
||||
char *subst_user_agent(char *fmt, char *version,
|
||||
char *subst_user_agent(char *fmt, const char *version,
|
||||
char *sysname, char *termsize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user