Files
Piwigo/themes
Wei-Chung Wen ad6e96b82c Fixes #1004 Error using Piwigo from Android with smartpocket theme
Using SmartPocket theme in Android 9's Chrome gives this error:

"Uncaught TypeError: Cannot read property 'toString' of null"

The error is caused by the following code

e.navigator.userAgent.match(/Android (\d+.\d+)/)

because the userAgent set by Chrome in Android 9 reads:

"Mozilla/5.0 (Linux; Android 9; H4133) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36"

Signed-off-by: Wei-Chung Wen <morisato3711@gmail.com>
2019-07-12 13:52:29 +02:00
..