mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Text handling: Display application/json, rather than offering download.
This commit is contained in:
parent
7458cfa999
commit
9fa6c1e0fb
@ -1331,6 +1331,12 @@ nserror textplain_init(void)
|
||||
lwc_string_unref(textplain_default_charset);
|
||||
}
|
||||
|
||||
error = content_factory_register_handler("application/json",
|
||||
&textplain_content_handler);
|
||||
if (error != NSERROR_OK) {
|
||||
lwc_string_unref(textplain_default_charset);
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user