jazzband / django-push-notifications

Send push notifications to mobile devices through GCM or APNS in Django.
MIT License
2.24k stars 609 forks source link

getting error when run JS client side #629

Closed halhwadi closed 9 months ago

halhwadi commented 2 years ago

When running the JS code provided in read me section i got the below error:

Uncaught TypeError: Cannot read properties of undefined (reading 'match')

lines code caused this issue is:

var ua = userAgent, tem, M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];

 var browser = loadVersionBrowser();
azmeuk commented 11 months ago

Browser guessing will be deprecated with #674 so this piece of code won't be necessary at all.

azmeuk commented 9 months ago

Fixed by #674