From c15342e2c16ee10118ab6be540cc56afe67f1884 Mon Sep 17 00:00:00 2001 From: Joan Claret Date: Mon, 13 Nov 2017 09:57:56 +0100 Subject: [PATCH] register detect public method --- src/bowser.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bowser.js b/src/bowser.js index f7bbca7..2ec17fb 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -611,5 +611,10 @@ */ bowser._detect = detect; + /* + * Set our detect public method to the main bowser object + * This is needed to implement bowser in server side + */ + bowser.detect = detect; return bowser });