Closed esmyllyaho90 closed 2 years ago
Hey! To use methods like browser.mobile?
, you need to import the aliases support by using require "browser/aliases"
, as described on the readme. Alternatively, you can do browser.device.mobile?
(no need to import aliases in this case).
Feel free to reopen this issue if you still face this issue after doing either of the above. :)
browser.device.mobile?
worked like a charm. Thank u so much for the quick reply :)
Description
Rails 7.0.1 - Ruby 3.1.2 - Browser - 5.3.1 I followed your docs and added gem "browser" to my gemfile (outside of dev grp). And in my view I added:
Tested it out in development and it worked perfectly on all devices I tried. Now after pushing to production on heroku I'm getting this error: