mirror of
https://github.com/barthuijgen/factorio-sites.git
synced 2025-01-22 11:44:10 +02:00
Fix navigator usage serverside
This commit is contained in:
parent
bcf796417e
commit
a76c2035bd
@ -1,4 +1,6 @@
|
||||
export function isMobileBrowser() {
|
||||
if (typeof navigator === "undefined") return false;
|
||||
|
||||
return (function (nav) {
|
||||
return Boolean(
|
||||
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(
|
||||
|
Loading…
x
Reference in New Issue
Block a user