mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Implement user agent reporting
This commit is contained in:
parent
a897d87d18
commit
f34a223b9a
@ -8,6 +8,11 @@
|
||||
* http://www.opensource.org/licenses/mit-license
|
||||
*/
|
||||
|
||||
prologue Navigator()
|
||||
%{
|
||||
#include "utils/useragent.h"
|
||||
%}
|
||||
|
||||
method Navigator::taintEnabled()
|
||||
%{
|
||||
duk_push_boolean(ctx, false);
|
||||
@ -74,3 +79,9 @@ getter Navigator::javaEnabled()
|
||||
duk_push_boolean(ctx, false);
|
||||
return 1;
|
||||
%}
|
||||
|
||||
getter Navigator::userAgent()
|
||||
%{
|
||||
duk_push_string(ctx, user_agent_string());
|
||||
return 1;
|
||||
%}
|
||||
|
Loading…
Reference in New Issue
Block a user