From f7ef472955c09a2f73128df413a27ae1bfb0370f Mon Sep 17 00:00:00 2001 From: papachristoumarios Date: Sat, 18 Nov 2017 18:15:30 +0200 Subject: [PATCH] disabled wow.js for mobile phones --- public/js/app.js | 9 ++++++--- serve_lan.sh | 3 +-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index e823404..b602224 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -789,10 +789,13 @@ module.exports = __webpack_require__(37); __webpack_require__(10); -var WOW = __webpack_require__(36); -window.WOW = new WOW.WOW({ live: false }); +if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) { -window.WOW.init(); + var WOW = __webpack_require__(36); + window.WOW = new WOW.WOW({ live: false }); + window.WOW.init(); + +} /* DISABLE Vue.js until it is needed diff --git a/serve_lan.sh b/serve_lan.sh index e69a69d..b4ef3d7 100755 --- a/serve_lan.sh +++ b/serve_lan.sh @@ -1,6 +1,5 @@ #!/bin/bash -export PORT="80" +export PORT="1000" export IP="$(hostname -I | cut -d' ' -f1)" -echo $PORT sudo php artisan serve --host $IP --port $PORT \ No newline at end of file