summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--javascript/duktape/Navigator.bnd11
1 files changed, 11 insertions, 0 deletions
diff --git a/javascript/duktape/Navigator.bnd b/javascript/duktape/Navigator.bnd
index 577ac29f0..b18ca8e83 100644
--- a/javascript/duktape/Navigator.bnd
+++ b/javascript/duktape/Navigator.bnd
@@ -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;
+%}