Thank you for this,
I have ended up placing it in a view class as a getter function
getisMobile(){// credit to Timothy Huang for this regex test: // https://dev.to/timhuang/a-simple-way-to-detect-if-browser-is-on-a-mobile-device-with-javascript-44j3if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){returntrue}else{returnfalse}}
Thank you for this,
I have ended up placing it in a view class as a getter function
Honestly thanks for this eloquent regex test.
thanks for your improvement! :)
Make it shorter like this:
Thank you!
Wow, really short! Thanks for your improvement.